onCircularLinkError
信息
此功能仅在 PRO 版中可用。
Description
在检测到循环引用且无法自动调度时触发
onCircularLinkError: (link: Link, group: any) => void;
Parameters
link- (required) Link - 链接对象group- (required) object - 在循环中连接的任务和链接的一个组
Example
gantt.attachEvent("onCircularLinkError",function(link, group){
// 在这里插入您的自定义逻辑
});
Related samples
Details
group 参数表示一个对象,其中包含一个在循环中连接的任务和链接的组。
{
tasks: [//循环中连接的任务ID],
links: [//循环中连接的链接ID]
}
注释
该方法需要启用 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
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onAutoScheduleCircularLink
Related Guides
Change log
- 参数 group 在版本 4.1 中新增。
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.