Skip to main content

getCalendar

Description

Gets worktime calendar by id

getCalendar: (calendarId?: string | number) => Calendar

Parameters

  • calendarId - (string | number) - optional, the id of the global calendar or "global"

Returns

  • config - (Calendar) - calendar object

Example

var calendar = gantt.getCalendar(calendarId);

Details

The returned object for the above example is a calendar object.

The default working time is the following:

  • Working days are from Monday to Friday.
  • Working hours are from 08:00 to 17:00.

Change log

  • added in version 4.2