onBeforeRollupTaskDisplay
Description
在父项目中显示 rollup 任务之前触发
onBeforeRollupTaskDisplay: (taskId: number | string, task: Task, parentId: number | string) => boolean;
Parameters
taskId- (required) number | string - rollup 任务 idtask- (required) Task - rollup 任务对象parentId- (required) number | string - 父级(项目)任务的 id
Returns
result- (boolean) - 定义滚动任务是否会在父项目中显示(true)还是不显示(false)
Example
gantt.attachEvent("onBeforeRollupTaskDisplay", function(taskId, task, parentId){
// 在这里插入您的自定义逻辑
return false;
});
Related Guides
Change log
- 新增于 v8.0
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.