Zum Hauptinhalt springen

deleteTask

Description

Entfernt die angegebene Aufgabe

deleteTask: (id: string | number) => void

Parameters

  • id - (required) string | number - die ID der zu entfernenden Aufgabe

Example

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

gantt.deleteTask(10); /*!*/

Details

Diese Methode löst die Events onBeforeTaskDelete und onAfterTaskDelete aus.

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.