onTaskLoading

fires when a task is being loaded from the data source

boolean onTaskLoading(Task task);
taskTaskthe object of a task
booleandefines 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