Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@arncet arncet released this 15 May 18:52
· 6 commits to master since this release

Features :

Add markedDays prop :

  • Type : Function(date [Int]) or Array[Number]
  • Default value : empty function
  • Required : false
  • Available since : v2.1.0

This prop marks the date with the dot below. It can be a function like in disableDates. This is useful when you want to mark the days with the events.

Example, mark all passed day :

<Calendar markedDays={date => date < new Date().getTime()} />

mark today and tomorrow :

const today = new Date().getTime()
const tmr = today + (24*60*60*1000)

...

<Calendar markedDays={[today, tmr]} />

Add onClickDate prop :

  • Type : Function(date [Int])*
  • Default value : empty function
  • Required : false
  • Available since : v2.1.0

On click event