At the moment with your Calendar component it is not possible to prevent that several date ranges are not selectable. With jQuery's datepicker this can be achieved by specifying a "beforeShowDay"-handler.
When will the Calendar support such a feature? What are your plans?
I'm not sure about the best way to add support for beforeShowDay yet to customize day rendering. I'd appreciate your feedback.
We were thinking about the following:
What do you think about these 2 proposals?
I like the second option, We have some changes to your code, to make the weekends disable, and the way we did it was using the beforeShowDay and date.getDay.
Is it something that you were thinking about?
In the meantime we switched to another solution for the datepicker. So we use a different datepicker now.
Most helpful comment
We were thinking about the following:
startDate
endDate
css class name (optional)
popup tooltip (optional)
All days within this date range would then be not selectable.
Sure this would mean a lot of logic to be implemented in the calendar.
If the handler function had to return also a css class name and a tooltip it would be close to the API of the jQuery datepicker.
What do you think about these 2 proposals?