big calendar react Can we have multiple color on different dates of Month?
Suppose: Every Date on month will have different color according to its events.
big calendar react Can we have multiple color on different dates of Month?
Suppose: Every Date on month will have different color according to its events.
The dayPropGetter does allow you to set styling in the month view, according to date, but it does not have access to other calendar props (like events
)
Method signature:
(date: Date) => { className?: string, style?: Object }
Usage:
const dayPropGetter = (date) => {
// build some className from the `date` and/or
// build some style definition from the `date` data
return { className, style }
}
<Calendar dayPropGetter={dayPropGetter} />
So, if you wanted to highlight every Wednesday, or weekend days, or 'today' in some manner, you could use this to do that.