This namespace contains functions that are used by the backend calendar page.
- Source:
Methods
-
<static> bindEventHandlers()
-
This method binds the default event handlers for the backend calendar page. If you do not need the default handlers then initialize the page by setting the "defaultEventHandlers" argument to "false".
- Source:
-
<static> getCalendarHeight() → {int}
-
This method calculates the proper calendar height, in order to be displayed correctly, even when the browser window is resizing.
- Source:
Returns:
Returns the calendar element height in pixels.- Type
- int
-
<static> initialize(defaultEventHandlers)
-
This function makes the necessary initialization for the default backend calendar page. If this namespace is used in another page then this function might not be needed.
Parameters:
Name Type Description defaultEventHandlers
bool (OPTIONAL = TRUE) Determines whether the default event handlers will be set for the current page. - Source:
-
<static> refreshCalendarAppointments(calendarHandle, recordId, filterType, startDate, endDate)
-
This method reloads the registered appointments for the selected date period and filter type.
Parameters:
Name Type Description calendarHandle
object The calendar jQuery object. recordId
int The selected record id. filterType
string The filter type, could be either FILTER_TYPE_PROVIDER or FILTER_TYPE_SERVICE startDate
date Visible start date of the calendar. endDate
type Visible end date of the calendar. - Source:
-
<static> updateAppointment(appointmentData)
-
This method stores the changes of an already registered appointment into the database, via an ajax call.
Parameters:
Name Type Description appointmentData
object Contain the new appointment data. The id of the appointment MUST be already included. - Source: