getTaskCalendar

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

object getTaskCalendar(object task);

Parameters

taskobjectthe object of a task

Returns

objectthe object of the task's calendar

Example

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

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