refreshLink

refreshes the specifies link

void refreshLink(string| number id);
idstring| numberthe link id

Example

gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:1
});
 
var task = gantt.getLink(1);
 
task.type = 2; gantt.refreshLink(1);

Details

You can use this method to repaint a link after changing its properties. Unlike updateLink, this method does not trigger the DataProcessor, and no updates will be sent to the server.

See also
Back to top