Calendar.js - Documentation - Holiday
Below is the JSON format and properties that can be used for the calendar holidays.
Download Now
v2.12.0 - 5th Jun 2024
Below is the JSON format and properties that can be used for the calendar holidays.
Download Now
Type: | Name: | Description |
---|---|---|
number | day | The day that the holiday occurs. |
number | month | The month that the holiday occurs. |
number | year | The year that the holiday occurs (if the holiday only occurs once. Defaults to null). |
string | title | The title for the holiday (i.e. Christmas Day). |
Object | onClick | Specifies an event that will be triggered when the holiday is clicked. |
string | onClickUrl | Specifies a URL that will be opened when the holiday is clicked (overrides “onClick”). |
string | backgroundColor | The background color the day should use (defaults to null). |
string | textColor | The text color the day should use (defaults to null). |