fires before a part of the split task is displayed on the Gantt chart
id | number|string | the id of the subtask |
task | Task | the object of the subtask |
parent | object | the object of the parent task |
boolean | defines whether the subtask of the split task will be displayed on the page (true) or not (false) |
gantt.attachEvent("onBeforeSplitTaskDisplay", function (id, task, parent) {
if (task.duration < 3) {
return false;
}
return true;
});
When the split task is rendered, firstly the onBeforeTaskDisplay event is fired for the parent item (a task with render:"split"). Then "onBeforeSplitTaskDisplay" is fired for its every subtask. Returning false from "onBeforeSplitTaskDisplay" prevents a subtask from being displayed.
Related sample: Filter split tasks
added in v8.0
Back to top