deleteTask

deletes the specified task

void deleteTask(string | number id);
idstring | numberthe task's id

Example

gantt.addTask({
    id:10,
    text:"Project #1",
    start_date:"02-09-2013",
    duration:28
});
 
gantt.deleteTask(10);

Details

The method invokes the onBeforeTaskDelete and onAfterTaskDelete events.

See also
Back to top