adds a new dependency link
link | object | the link object |
string | number | the link's id |
var linkId = gantt.addLink({
id:1,
source:1,
target:2,
type:gantt.config.links.finish_to_start
});
The method invokes the onBeforeLinkAdd and onAfterLinkAdd events.