returns the free slack of a task
task | Task | the object of a task |
number | the free slack of a task |
Available only in PRO Edition
const task = gantt.getTask(7);
gantt.getFreeSlack(task);
This functionality is available in the PRO edition only.
This method is defined in the critical_path extension, so you need to activate the critical_path plugin using the gantt.plugins method. Read the details in the Critical Path article.
Free slack is a period of time that can be used to increase the duration of a task or move it on the timeline without affecting the next task it is connected with.