Disabled Dates
Make weekdays, listed dates or any day you choose unselectable with @pglejzer/datepicker-ui.
Weekdays
#calendar.disabledWeekdays takes weekday numbers, where 0 is Sunday and 6 is Saturday. This demo disables weekends.
A list of dates
#calendar.disabledDates is a list of Date objects or ISO strings. The demo disables three days counted from today.
A custom rule
#calendar.isDateDisabled receives a Date and returns true for a day that cannot be selected. It adds to minDate, maxDate, disabledDates and enabledDates. This rule closes the 1st and the 15th of every month.
Only listed dates
#When calendar.enabledDates is set, only those days can be selected. Every other day is disabled.
Docs: Disabled Dates · Options