跳到主要内容

onAfterAutoSchedule

信息

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

Description

当自动排程完成时触发

onAfterAutoSchedule: (taskId: string | number, updatedTasks: any[]): void;

Parameters

  • taskId - (required) string | number - 根任务的 ID
  • updatedTasks - (required) array - 重新排程任务的 ID 数组

Example

gantt.attachEvent("onAfterAutoSchedule",function(taskId, updatedTasks){
// 在这里插入您的自定义逻辑
});

Details

注释

此事件在 auto_scheduling 扩展中定义,因此您需要激活 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.