onBeforeRollupTaskDisplay

在汇总任务显示于其父项目之前触发

boolean onBeforeRollupTaskDisplay(number|string taskId,Task task,number|string parentId);
taskIdnumber|string汇总任务的ID
taskTask汇总任务对象本身
parentIdnumber|string父任务(项目)的ID
boolean指示汇总任务是否将在其父项目上可见(true)或隐藏(false

Example

gantt.attachEvent("onBeforeRollupTaskDisplay", function(taskId, task, parentId){
    // 在这里编写自定义逻辑
    return false;
});

See also
  • Articles
  • Change log

    在v8.0中添加

    Back to top