hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.59k stars 672 forks source link

How to highlight specific dates only in calender and disable all other dates.? #392

Open mbilal003 opened 4 years ago

mbilal003 commented 4 years ago

Subject of the issue

i want to highlight dates base on data i am getting from API and disable other dates.Is there any way to highlight specific dates because currently, I can see only minDate and maxdate props which just enable dates which this range BUT i want to highlight the specific date in calendar. Actually This calendar i am using for event management to show event dates on calender.

[BUG] Bug Reproduce Steps

Tell us how to reproduce this issue.

[BUG] Expected behavior

Environment

Package Version: 1.03 React version: "16.13.1", Node version:v12.16.1 Browser: Chorome

viruhemanth commented 2 years ago

any updates on this?

NateDawg90 commented 1 year ago

I would also like an update on this, as I'm trying to disable all dates except an array of dates I supply!

cm-hart commented 1 year ago

I am also trying to change based on an array of dates as well...

NateDawg90 commented 1 year ago

the workaround we came up with was to restrict to a range with minDate and maxDate, and then disable individual dates within that range in the disabledDates array. It isn't perfect though and won't work for every use case