deleteLink

deletes the specified dependency link

void deleteLink(string | number id);
idstring | numberthe dependency link's id

Example

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

Details

The method invokes the onBeforeLinkDelete and onAfterLinkDelete events.

See also
Back to top