Releases: lelivrescolaire/react-light-calendar
Releases · lelivrescolaire/react-light-calendar
v2.1.0
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
2.0.7 chore(deployment): add storybook-deployer
fix(navigation): fix month/year navigation button actions
2.0.6 chore(readme): fix readme npm version
Update to [email protected]
@lls/react-light-calendar
now use[email protected]
and[email protected]
as peer dependencies.range
prop is deprecated.