跳到主要内容

autoSchedule

信息

此功能仅在 PRO 版本中可用。

Description

自动更新项目进度计划

autoSchedule: (taskId?: string | number) => void

Parameters

  • taskId - (optional) string | number - 可选,任务 ID

Example

gantt.autoSchedule();

Details

如果想从指定任务开始更新进度计划,只需将该任务的 ID 作为参数传递给 autoSchedule() 方法:

gantt.autoSchedule(taskId);
注释

请确保页面中已包含 auto_scheduling 插件,因为该方法依赖此插件。