getLink

returns the dependency link object by the specified id

Link getLink(string|number id);
idstring|numberthe link id
Linkthe link object

Example

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

Details

For information about how to get all links connected to a specific task, see the Getting the Link Object/Id article.

Back to top