getTotalSlack

returns the total slack of a task

number getTotalSlack(object task);

Parameters

taskobjectthe object of a task

Returns

numberthe total slack of a task

Available only in PRO Edition

Example

var task = gantt.getTask(7);
gantt.getTotalSlack(task);

Related samples

Details

This functionality is available in the PRO edition only.

This method is defined in the ext/dhtmlxgantt_critical_path.js extension, so you need to include it on the page. Read the details in the Critical Path article.

Total 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 time of ending of the whole project.

See also
Back to top