gets a calendar assigned to the specified task (a task level calendar)
task | string | number | object | the id or object of a task |
object | the object of the task's calendar |
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);
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.