fires before the user deletes a task
| id | string|number | the task id |
| task | Task | the task object |
| boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
gantt.attachEvent("onBeforeTaskDelete", function(id,task){
//any custom logic here
return true;
});
The event is blockable. Return false to cancel deleting of the task.