Create a new calendar.
The element (or the selector to an element) in which the calendar should be created.
The options used to customize the calendar
Fired when a day is clicked.
Fired when a day is right clicked.
Fired when the mouse enter in a day.
Fired when the mouse leave a day.
Triggered after the changing the visible period.
Fired when the calendar rendering is ended.
Fired when a date range is selected.
Don't forget to enable the enableRangeSelection
option to be able to use the range selection functionality.
Triggered after the changing the current year.
Works only if the calendar is used in a full year mode. Otherwise, use periodChanged
event.
Add a new element to the data source.
This method causes a refresh of the calendar.
Indicates whether the calendar shouldn't be refreshed once the event added.
Gets a value indicating whether the user can select a range which overlapping an other element present in the datasource.
Gets a value indicating whether the beginning and the end of each range should be displayed as half selected day.
Gets the context menu items.
Gets the period displayed on the calendar.
Gets the custom data source renderer.
Gets the custom day renderer.
Gets the current data source.
Gets the disabled days.
Gets the disabled days of the week.
Gets a value indicating whether the data source must be rendered on disabled days.
Gets a value indicating whether the calendar header is displayed.
Gets a value indicating whether the weeks number are displayed.
Gets a value indicating whether the default context menu must be displayed when right clicking on a day.
Gets a value indicating whether the user can make range selection.
Gets the data source elements for a specified day.
The specified day.
Gets the data source elements for a specified range of days.
The beginning of the day range (inclusive).
The end of the day range (non inclusive).
Gets the hidden days of the week.
Gets the language used for calendar rendering.
Gets the loading template.
Gets the maximum date of the calendar.
Gets the minimum date of the calendar.
Gets the number of months displayed by the calendar.
Gets a value indicating whether the beginning and the end of each range should be displayed as rounded cells.
Gets the first date displayed on the calendar.
Gets the current style used for displaying data source.
Gets the week number for a specified date.
The specified date.
Gets the starting day of the week.
Gets the year displayed on the calendar. If the calendar is not used in a full year configuration, this will return the year of the first date displayed in the calendar.
Check if there is no event on the first part, last part or on the whole specified day.
The specified day.
Whether to check for a free slot on the first part (if false
) or the last part (if true
) of the day. If null
, this will check on the whole day.
Usefull only if using the alwaysHalfDay
option of the calendar, or the startHalfDay
or endHalfDay
option of the datasource.
Renders the calendar.
Sets a value indicating whether the user can select a range which overlapping an other element present in the datasource.
Indicates whether the user can select a range which overlapping an other element present in the datasource.
Sets a value indicating whether the beginning and the end of each range should be displayed as half selected day.
This method causes a refresh of the calendar.
Indicates whether the beginning and the end of each range should be displayed as half selected day.
Sets new context menu items.
This method causes a refresh of the calendar.
The new context menu items.
Sets the custom data source renderer. Works only with the style set to "custom".
This method causes a refresh of the calendar.
Sets the custom day renderer.
This method causes a refresh of the calendar.
Sets a new data source.
This method causes a refresh of the calendar.
The new data source.
Sets the disabled days.
This method causes a refresh of the calendar.
Sets the disabled days of the week.
This method causes a refresh of the calendar.
The disabled days of the week to set.
Sets a value indicating whether the data source must be rendered on disabled days.
This method causes a refresh of the calendar.
Indicates whether the data source must be rendered on disabled days.
Sets a value indicating whether the calendar header is displayed.
This method causes a refresh of the calendar.
Indicates whether the calendar header is displayed.
Sets a value indicating whether the weeks number are displayed.
This method causes a refresh of the calendar.
Indicates whether the weeks number are displayed.
Sets a value indicating whether the default context menu must be displayed when right clicking on a day.
This method causes a refresh of the calendar.
Indicates whether the default context menu must be displayed when right clicking on a day.
Sets a value indicating whether the user can make range selection.
This method causes a refresh of the calendar.
Indicates whether the user can make range selection.
Sets the hidden days of the week.
This method causes a refresh of the calendar.
The hidden days of the week to set.
Sets the language used for calendar rendering.
This method causes a refresh of the calendar.
The language to use for calendar redering.
Sets the loading template.
The loading template.
Sets the maximum date of the calendar.
This method causes a refresh of the calendar.
Sets the minimum date of the calendar.
This method causes a refresh of the calendar.
Sets the number of months displayed that should be displayed by the calendar.
This method causes a refresh of the calendar.
Number of months that should be displayed by the calendar.
Sets a value indicating whether the beginning and the end of each range should be displayed as rounded cells.
This method causes a refresh of the calendar.
Indicates whether the beginning and the end of each range should be displayed as rounded cells.
Sets the first date that should be displayed on the calendar.
The first date that should be displayed on the calendar.
Sets the style to use for displaying data source.
This method causes a refresh of the calendar.
The style to use for displaying data source ("background", "border" or "custom").
Sets the starting day of the week.
This method causes a refresh of the calendar.
The starting day of the week. This option overrides the parameter define in the language file.
Sets the year displayed on the calendar. If the calendar is not used in a full year configuration, this will set the start date to January 1st of the given year.
The year to displayed on the calendar.
Generated using TypeDoc
Calendar instance.