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){
// 在这里插入您的自定义逻辑
});
Related samples
Details
注释
此事件在 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
- onAfterAutoSchedule
- 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.