跳到主要内容

onCircularLinkError

信息

此功能仅在 PRO 版中可用。

Description

在检测到循环引用且无法自动调度时触发

onCircularLinkError: (link: Link, group: any) => void;

Parameters

  • link - (required) Link - 链接对象
  • group - (required) object - 在循环中连接的任务和链接的一个组

Example

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

Details

group 参数表示一个对象,其中包含一个在循环中连接的任务和链接的组。

{ 
tasks: [//循环中连接的任务ID],
links: [//循环中连接的链接ID]
}
注释

该方法需要启用 auto_scheduling 插件。

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.