onTaskLoading
fires when a task is being loaded from the data source
boolean onTaskLoading(object task){ ... };
Parameters
task | object | the object of a task |
Returns
boolean | defines whether the default action of the event will be triggered (true) or canceled (false) |
Example
gantt.attachEvent("onTaskLoading", function(task){
//any custom logic here
return true;
});
Details
- The event fires for each task in the data source.
- The event is blockable. Return false and the task won't be loaded into the Gantt chart.
See also
Back to top