deleteTask
Description
Deletes the specified task
deleteTask: (id: string | number) => void
Parameters
id- (required) string | number - the 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.
Related API
Related Guides
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.