Copyright © 2023 MIT License. | Design and development by Yury Uvarov.
💢 Usage example — a website example for searching for flight tickets and hotels using vanilla-calendar.

Date range

Enabling or Disabling Days

Sometimes you may need to disable specific days so they are not available for selection. The examples below show how this can be done.

It's important to understand that in the examples below, the parameters settings.selected.year and settings.selected.month are only specified for the demonstration of a particular month.

The example below demonstrates the disabling of specific days.

And in the following example, it shows how to enable specific days, which can be simpler than specifying a list of disabled days.