getLinkNode

returns the HTML element of the specified dependency link

HTMLElement getLinkNode(string| number id);
idstring| numberthe link id
HTMLElementthe HTML element of the link

Example

gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:1
});
 
gantt.getLinkNode(1); //-> <div class=​"gantt_task_link" link_id=​"1">​…​</div>​

Back to top