A general calendar utility object that is used by other modules to perform
calendar related tasks.
- Copyright:
- 2015 Kepler project authors
- License:
- BSD 3-clause, see LICENSE for more details.
- Source:
Methods
(static) defaultEventRender(event, element, view)
Sets the default event rendering callback function for FullCalendar events.
Parameters:
Name | Type | Description |
---|---|---|
event |
Contains the event information. | |
element |
Contains information of what kind of element the clicked event is. | |
view |
Contains the viewmode in which the element is shown. |
- Source:
(static) initCal(clickCallback, renderCallback)
Initialises the FullCalendar calendar widget.
Parameters:
Name | Type | Description |
---|---|---|
clickCallback |
The click event handler for clicking calendar events. | |
renderCallback |
An optional callback to customise calendar events to suit each module's purpose. |
- Source:
Returns:
The jQuery object of the calendar widget.
(static) initDefaultCal(clickCallback, renderCallback, eventFilter)
Initialises the default calendar with the event source of kepler
calendar events.
Parameters:
Name | Type | Description |
---|---|---|
clickCallback |
The click event handler for clicking calendar events. | |
renderCallback |
An optional callback to customise calendar events. | |
eventFilter |
An optional function that can filter out events. |
- Source:
Returns:
The jQuery object of the calendar widget.
(static) makeCalendarEvent(event)
Makes a calendar event from the event received from the Kepler API calls
get_calendar_events or get_time_slot_events.
Parameters:
Name | Type | Description |
---|---|---|
event |
The Kepler event that contains the information about the event. |
- Source: