본문으로 건너뛰기

onBeforeCollapse

Description

Gantt가 전체 화면 모드를 종료하고 일반 모드로 돌아갑니다

onBeforeCollapse: () => boolean;

Returns

  • result - (boolean) - 이벤트의 기본 동작이 트리거될지(true) 아니면 취소될지(false)를 정의합니다

Example

gantt.attachEvent("onBeforeCollapse",function(){
// 여기에 코드 작성
return true;
});

Details

이벤트는 차단 가능합니다. false를 반환하면 후속 처리가 취소됩니다.

노트

이 이벤트는 fullscreen 확장에서 정의되어 있으므로, fullscreen 플러그인을 gantt.plugins 메서드를 사용하여 활성화해야 합니다. 자세한 내용은 Full Screen Mode 문서를 참조하십시오.

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.