跳到主要内容

deleteLink

Description

移除指定的依赖链接

deleteLink: (id: string | number) => void

Parameters

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

Example

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

gantt.deleteLink(1); /*!*/

Details

此方法会触发 onBeforeLinkDeleteonAfterLinkDelete 事件。

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.