跳到主要内容

refreshTask

Description

刷新任务及其相关链接

refreshTask: (id: string | number, refresh_links?: boolean) => void

Parameters

  • id - (必填) string | number - 任务 ID

Example

gantt.addTask({
id:10,
text:"Task #5",
start_date:"02-09-2013",
duration:28
}, "project_2");

var task = gantt.getTask(10);

task.text = "Task #10"; /*!*/
gantt.refreshTask(10); /*!*/

Details

您可以在修改任务属性后使用此方法重新绘制任务。与 updateTask 不同,此方法不会触发 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.