- Information
- License (MIT)
- Recent Changes
- Supported Languages
- Supported Export Types
- Supported Import Types
- Setup
- Getting Started
- CDN Links
- JSON Objects
- Calendar Event
- Holiday
- Navigation
- Shortcut Keys
- API
- Binding Functions
- Class Instance Functions
- Advanced
- Custom Triggers
- Basic Options
- View Options
- Search Options
- Text Options
- Date Formatting
Holiday Format
Explore the complete JSON format and property list for managing calendar holidays. This guide outlines every available field to help developers efficiently create, update, and organize holidays within the library.
Example
const today = new Date(); let holiday = { day: today.getDate(), month: today.getMonth() + 1, year: today.getFullYear(), title: "Google Day", }; calendarInstance.addHolidays( [ holiday ] );
Options
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). |