onAfterAutoSchedule
信息
此功能仅在 PRO 版本中可用。
Description
当自动排程完成时触发
onAfterAutoSchedule: (taskId: string | number, updatedTasks: any[]): void;
Parameters
taskId- (required) string | number - 根任务的 IDupdatedTasks- (required) array - 重新排程任务的 ID 数组
Example
gantt.attachEvent("onAfterAutoSchedule",function(taskId, updatedTasks){
// 在这里插入您的自定义逻辑
});
Related samples
Details
注释
此事件在 auto_scheduling 扩展中定义,因此您需要激活 auto_scheduling 插件。请在 Auto Scheduling 文章中阅读详细信息。
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_initial
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink
Related Guides
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.