跳到主要内容

getConnectedGroup

信息

此功能仅在 PRO 版中可用。

Description

返回一个任务所连接的所有任务和链接

getConnectedGroup: (id?: string | number) => any

Parameters

  • name - (optional) string | number - 任务的 id

Returns

  • connections - (对象) - 一个包含该任务所连接的任务和链接的对象

Example

gantt.getConnectedGroup(18);
// => {links:["16", "17", "18"], tasks:[18, 17, 19, 20]}

Details

若不带参数,该方法将返回所有形成连接的任务和链接的分组。

注释

该方法需要在页面中包含 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.