跳到主要内容

onAfterTaskAutoSchedule

信息

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

Description

对于每个已自动排程的任务触发

onAfterTaskAutoSchedule: (task: Task, start: Date, link: Link, predecessor: Task) => void;

Parameters

  • task - (required) Task - 任务对象
  • start - (required) Date - 一个新的起始日期
  • link - (required) Link - 用于创建约束的链接对象
  • predecessor - (required) Task - 前驱任务对象

Example

gantt.attachEvent("onAfterTaskAutoSchedule",function(task, start, link, predecessor){
// 在这里插入您的自定义逻辑
});

Details

注释

此事件在 auto_scheduling 扩展中定义,因此您需要激活 auto_scheduling 插件。请在 自动排程 文章中阅读详细信息。

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.