DayPilot.Gantt.tasks.update

Commits the DayPilot.Task changes made using the change methods like text(newText), start(newStart), and updates the Gantt chart.

Declaration

DayPilot.Gantt.tasks.update(task);

Parameters

Example

var task = gantt.tasks.find("1");

var newStart = task.start().addDays(1);
var newEnd = task.end().addDays(1);

task.start(newStart);
task.end(newEnd);

gantt.tasks.update(task);