Demos
Documentation
API
More Samples
Download Wijmo

Calendar Validation

The Calendar control prevents users from selecting values outside the range determined by the min and max properties.

In many cases, however, not all dates in the range are valid. To handle these situations, the Calendar control has an itemValidator property. This property represents a function that takes a date as a parameter and returns true if the date is valid for selection, or false otherwise.

The calendar below demonstrates this. It prevents users from selecting dates on weekends and holidays: