getTaskCalendar

gets a calendar assigned to the specified task (a task level calendar)

object getTaskCalendar(string|number|object task);
taskstring|number|objectthe id or object of a task
objectthe object of the task's calendar

Example

const task_calendar = gantt.getTaskCalendar({
    "id":2, 
    "calendar_id":"custom", 
    "text":"Task #1", 
    "start_date":"02-04-2013",
    "parent":"1", 
    "progress":0.5, 
    "open": true
});
 
gantt.getTaskCalendar(2);

Related samples

Details

added in version 4.2

The returned object for the above example is a calendar object. If the work_time option is disabled, method returns calendar with 24/7 working time enabled.

See also
Back to top