跳到主要内容

isLinkExists

Description

检查指定链接是否存在

isLinkExists: (id: string | number) => boolean

Parameters

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

Returns

  • link - (boolean) - true,如果存在这样的链接。否则,false

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});
gantt.isLinkExists(1); // ->true
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.