getTaskCalendar
Description
Gets a calendar assigned to the specified task (a task level calendar)
getTaskCalendar: (task: *string | number | object) => any
Parameters
task- (required) string | number | object - the id or object of a task
Returns
task_calendar- (object) - the 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.