isLinkExists

checks whether the specified link exists

boolean isLinkExists(string | number id);
idstring | numberthe link id
booleantrue, if such a link exists. Otherwise, false

Example

gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:1
});
gantt.isLinkExists(1); // ->true

Back to top