Calendar disable specific dates and/or days such as holidays or weekends #1690
Labels
Type: New Feature
Issue contains a new feature or new component request
Milestone
I'm submitting a ...
What is the motivation / use case for changing the behavior?
In some cases it might not be appropriate to let users select specific dates or days in the calendar, ie. could be weekends or holidays.
Proposed solution
Pass an array with dates to the calendar that shouldn't be selectable and apply a specific class to these dates to enable styling. This would enable users to disable specific holidays.
Pass an array with weekdays that should be disabled, ie. if a user wants to disable weekends they would pass in 0 and 6 (disabling Saturday and Sunday), apply specific class to disabled days to enable styling.
The text was updated successfully, but these errors were encountered: