跳到主要内容

refreshLink

Description

刷新指定的链接

refreshLink: (id: string | number) => void

Parameters

  • id - (必填) string | number - 链接 ID

Example

gantt.addLink({
id:1,
source:1,
target:2,
type:1
});

var task = gantt.getLink(1);

task.type = 2; /*!*/
gantt.refreshLink(1); /*!*/

Details

您可以在修改链接属性后使用此方法重新绘制链接。与 updateLink 不同,此方法不会触发 DataProcessor,也不会向服务器发送更新。

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.