fires after the tasks have been loaded to the Gantt chart, but before they are displayed
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("onBeforeTaskDisplay", function(id, task){
if (task.priority == "high"){
return true;
}
return false;
});
The event is blockable. Returning false will prevent the task from being displayed