[Datepicker] Add example with specific days disabled.
It could be useful to add a datepicker parameter in order to disable specific weekdays. Given an array from 0 to 6, where 0 is Sunday and 6 is Saturday, all the numbers in the range are enabled.
Something like: availableWeekdays: [1, 2, 3, 4, 5]
You can already do this via 'shouldDisableDate' right?
Thanks @EugeneZ, we should probably add this to one of the examples.
@francescabarbazeni87 shouldDisableDate takes a function which is passed each Date in turn, and should return a bool depending on whether to disable that date.
It's a bit more flexible than the declarative approach, as you could have dates disabled that meet certain conditions (e.g. last Friday of the month), or based on external data (e.g. hotel availability).
Ok, thanks!