Skip to content

Releases: lelivrescolaire/react-light-calendar

v2.1.0

15 May 18:52
Compare
Choose a tag to compare

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

chore(dependencies): update dependencies + tests

09 Aug 10:04
Compare
Choose a tag to compare
2.0.7

chore(deployment): add storybook-deployer

fix(navigation): fix month/year navigation button actions

20 Jul 01:23
Compare
Choose a tag to compare
2.0.6

chore(readme): fix readme npm version

Update to [email protected]

26 Nov 19:41
5df5d99
Compare
Choose a tag to compare