getLink

returns the dependency link object by the specified id

object getLink(string|number id);

Parameters

idstring|numberthe link id

Returns

objectthe link object

Example

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

Back to top