deleteLink

移除指定的依赖链接

void deleteLink(string | number id);
idstring | number依赖链接的ID

Example

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

Details

此方法会触发 onBeforeLinkDeleteonAfterLinkDelete 事件。

See also
Back to top