updateTask

updates the specified task

void updateTask(string id);

Parameters

idstringthe task id

Example

var taskId = gantt.addTask({
    id:10,
    text:"Task #10",
    start_date:"02-04-2013",
    duration:8,
    parent:1
});
 
gantt.getTask(taskId).text = "Task #13"; //changes task's data
gantt.updateTask(taskId); //renders the updated task

Details

The method invokes the onAfterTaskUpdate method.

See also
Back to top