onBeforeTaskUpdate

fires before the user updates a task

void onBeforeTaskUpdate(string|number id,object new_item){ ... };

Parameters

idstring|numberthe task id
new_itemobjectthe new (updated) object of the task

Example

gantt.attachEvent("onBeforeTaskUpdate", function(id,new_item){
    //any custom logic here
});

See also
Back to top