core_calendar/view_manager

A javascript module to handler calendar view changes.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) changeDay

Source:

Handle changes to the current calendar view.

(static, constant) changeMonth

Source:

Handle changes to the current calendar view.

(static, constant) foldDayEvents

Source:

Hide day events if more than 5.

(static, constant) refreshDayContent

Source:

Refresh the day content.

(static, constant) refreshMonthContent

Source:

Refresh the month content.

(static, constant) registerEventListenersForMonthDetailed

Source:

Register and handle month calendar events.

(static, constant) reloadCurrentDay

Source:

Reload the current day view data.

(static, constant) reloadCurrentMonth

Source:

Reload the current month view data.

(static, constant) reloadCurrentUpcoming

Source:

Reload the current month view data.

(static, constant) updateUrl

Source:

Update calendar URL.

(inner, constant) LIMIT_DAY_EVENTS

Source:

Limit number of events per day

Methods

(inner) getEventTypeClassFromType(eventType) → {string}

Source:

Get the CSS class to apply for the given event type.

Parameters:
Name Type Description
eventType string

The calendar event type

Returns:
Type
string

(inner) registerEventListeners(root)

Source:

Register event listeners for the module.

Parameters:
Name Type Description
root object

The root element.

(inner) renderEventSummaryModal(eventId) → {Promise}

Source:

Render the event summary modal.

Parameters:
Name Type Description
eventId Number

The calendar event id.

Returns:
Type
Promise

(inner) startLoading(root)

Source:

Set the element state to loading.

Parameters:
Name Type Description
root object

The container element

(inner) stopLoading(root)

Source:

Remove the loading state from the element.

Parameters:
Name Type Description
root object

The container element