Перейти к основному содержимому

deleteTask

Description

Удаляет указанную задачу

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

Parameters

  • id - (required) string | number - идентификатор задачи, которую необходимо удалить

Example

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

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

Details

Этот метод вызывает события onBeforeTaskDelete и onAfterTaskDelete.

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.