Skip to main content

onBeforeRollupTaskDisplay

Description

Fires before the rollup task is displayed on its parent project

onBeforeRollupTaskDisplay: (taskId: number | string, task: Task, parentId: number | string) => boolean;

Parameters

  • taskId - (required) number | string - the rollup task id
  • task - (required) Task - the rollup task object
  • parentId - (required) number | string - the id of the parent (project) task

Returns

  • result - (boolean) - defines whether the rollup task will be displayed on its parent project (true) or not (false)

Example

gantt.attachEvent("onBeforeRollupTaskDisplay", function(taskId, task, parentId){
// any custom logic here
return false;
});

Change log

  • added in v8.0