跳到主要内容

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.