getCalendar

gets worktime calendar by id

object getCalendar(string|number calendarId);

Parameters

calendarIdstring|numberthe id of the global calendar or "global"

Returns

objectcalendar 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