跳到主要内容

getLink

Description

根据指定 ID 返回依赖链接对象

getLink: (id: string | number) => Link

Parameters

  • id - (required) string | number - 链接 ID

Returns

  • link - (Link) - 链接对象

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});
gantt.getLink(1);// -> {id:1, source:1, target:2, type:1}

Details

有关如何获取与特定任务相关的所有链接的信息,请参阅 Getting the Link Object/Id 文章。

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.