getFreeSlack
信息
该功能仅在PRO版本中可用。
Description
返回任务的自由时差
getFreeSlack: (task: Task) => number
Parameters
task- (required) Task - 任务对象
Returns
free_slack- (number) - 任务的自由时差
Example
const task = gantt.getTask(7);
gantt.getFreeSlack(task);
Related samples
Details
注释
此方法属于critical_path扩展的一部分,因此请确保通过gantt.plugins方法启用critical_path插件。更多信息请参见关键路径文档。
自由时差指任务持续时间可以增加的时间量,或任务在时间线上可以移动的时间量,而不会影响任何后续关联任务。