getCalendar

gets worktime calendar by id

Calendar getCalendar( [string | number calendarId] );
calendarIdstring | numberoptional, the id of the global calendar or "global"
Calendarcalendar 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.
See also
Change log

added in version 4.2

Back to top