addLink

adds a new dependency link

string | number addLink(object link);
linkobjectthe link object
string | numberthe link's id

Example

var linkId = gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:gantt.config.links.finish_to_start
});

Details

The method invokes the onBeforeLinkAdd and onAfterLinkAdd events.

See also
Back to top