core_calendar/view_manager

Description:
  • A javascript module to handler calendar view changes.

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

A javascript module to handler calendar view changes.

Members

(static, constant) changeDay

Description:
  • Handle changes to the current calendar view.

Source:

Handle changes to the current calendar view.

(static, constant) changeMonth

Description:
  • Handle changes to the current calendar view.

Source:

Handle changes to the current calendar view.

(static, constant) foldDayEvents

Description:
  • Hide day events if more than 5.

Source:

Hide day events if more than 5.

(static, constant) handleCourseChange

Description:
  • Handles the change of course and updates the relevant elements on the page.

Source:

Handles the change of course and updates the relevant elements on the page.

(static, constant) init

Description:
  • Initializes the calendar component by prefetching strings, folding day events, and registering event listeners.

Source:

Initializes the calendar component by prefetching strings, folding day events, and registering event listeners.

(static, constant) refreshDayContent

Description:
  • Refresh the day content.

Source:

Refresh the day content.

(static, constant) refreshMonthContent

Description:
  • Refresh the month content.

Source:

Refresh the month content.

(static, constant) registerEventListenersForMonthDetailed

Description:
  • Register and handle month calendar events.

Source:

Register and handle month calendar events.

(static, constant) reloadCurrentDay

Description:
  • Reload the current day view data.

Source:

Reload the current day view data.

(static, constant) reloadCurrentMonth

Description:
  • Reload the current month view data.

Source:

Reload the current month view data.

(static, constant) reloadCurrentUpcoming

Description:
  • Reload the current month view data.

Source:

Reload the current month view data.

(static, constant) updateUrl

Description:
  • Update calendar URL.

Source:

Update calendar URL.

(inner, constant) LIMIT_DAY_EVENTS

Description:
  • Limit number of events per day

Source:

Limit number of events per day

Methods

(inner) getEventTypeClassFromType(eventType) → {string}

Description:
  • Get the CSS class to apply for the given event type.

Source:
Parameters:
Name Type Description
eventType string

The calendar event type

Returns:
Type
string

(inner) registerEventListeners(root, isCalendarBlock)

Description:
  • Register event listeners for the module.

Source:
Parameters:
Name Type Description
root object

The root element.

isCalendarBlock boolean

A flag indicating whether this is a calendar block.

(inner) renderEventSummaryModal(eventId) → {Promise}

Description:
  • Render the event summary modal.

Source:
Parameters:
Name Type Description
eventId Number

The calendar event id.

Returns:
Type
Promise

(inner) startLoading(root)

Description:
  • Set the element state to loading.

Source:
Parameters:
Name Type Description
root object

The container element

(inner) stopLoading(root)

Description:
  • Remove the loading state from the element.

Source:
Parameters:
Name Type Description
root object

The container element