refreshLink

更新指定的 link

void refreshLink(string | number id);
idstring | numberlink 的 id

Example

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

Details

此方法用于在修改 link 属性后重新绘制该 link。与 updateLink 不同,它不会激活 DataProcessor,因此不会将更改发送到服务器。

See also
Back to top