-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Disabled days #21
Comments
Hey @samiro, right now there isn't a way to disable individual days, only minimum and maximum dates can be set. I don't see this feature being a priority right now, unless it becomes popular. As always, pull requests are welcome, but I would advise waiting for events (see #3) to be implemented so we can have a similar APIs. |
Ok. Thank you very much. |
+1 |
+1 |
I just wanted to point out to anyone that's interested in this feature, that I managed to implement this functionality buy implementing onDateChanged, keeping track of the currently selected date and re-setting the currently selected date if the newly selected date should be disabled. The other thing that I had to do was implement a DayViewDecorator which set the disabled day's background to the same color as the calendar background. |
Thanks for the suggestion @jsa-nic! |
Released in 0.6.0. Disabling days was added to the decorator system. |
@dandc87 Can you provide an example for disabling certain dates? I was trying to do as proposed here
However, it doesn't work and it seems like CalendarDay() is deprecated. |
How disable any day?
The text was updated successfully, but these errors were encountered: