-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datesDisable option #515
datesDisable option #515
Conversation
…to display as disable on the datepicker component.
There's already an option that provides similar functionality, |
Is there a reason you don't want this built in by default? This is way more convenient than having to create a separate function. |
It's definitely odd that you can't simply enter an array of disabled dates as a default option -- pretty basic calendar functionality (holidays/schedules/etc.) I realize there are workarounds in place using beforeShowDay and looping through but it's not the most intuitive solution. This seems like no-brainer functionality to me; appreciate this datesDisabled contribution -- we'll be using it. |
This does seem way better and is exactly the functionality I'm looking for. Please reconsider adding this. +1 |
I definitely need it, beforeShowDay seems like a weird place to hide/disable the date. +1 |
Thanks @matiasalvarez87! |
Added docs for datesDisabled #515
Added sandbox example for dateDisabled introduced in #515
An array to specify dates to disable. It also adds the .disabled-date class in order to customise the UI.
Usage: