onBeforeSplitTaskDisplay
Description
Gantt 차트에 분할 작업의 일부가 표시되기 전에 발생합니다
onBeforeSplitTaskDisplay: (id: number | string, task: Task, parent: any) => boolean;
Parameters
id- (required) number | string - 하위 작업의 IDtask- (required) Task - 하위 작업의 객체parent- (required) object - 상위 작업의 객체
Returns
result- (boolean) - 분할 작업의 하위 작업이 페이지에 표시될지 여부를 정의합니다 (true) 또는 그렇지 않으면 (false)
Example
gantt.attachEvent("onBeforeSplitTaskDisplay", function (id, task, parent) {
if (task.duration < 3) {
return false;
}
return true;
});
Details

분할 작업이 렌더링되면 먼저 상위 항목에 대해 onBeforeTaskDisplay 이벤트가 발생합니다( *render:"split"*인 태스크). 그런 다음 각 하위 작업에 대해 "onBeforeSplitTaskDisplay"가 실행됩니다. "onBeforeSplitTaskDisplay"에서 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.