changeLinkId

changes the link's id

void changeLinkId(string| number id,string| number new_id);
idstring| numberthe current link's id
new_idstring| numberthe new link's id

Example

gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:1
});
 
gantt.changeLinkId(1, 5); //changes the link's id '1 -> 5'

Details

The method fires the onLinkIdChange event.

See also
Back to top