refreshTask

refreshes the task and its related links

void refreshTask(string| number id, [boolean refresh_links] );

Parameters

idstring| numberthe task id
refresh_linksbooleanoptional, defines whether links related to the task should be refreshed, true by default

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);

See also
Back to top