본문으로 건너뛰기

onBeforeLightbox

Description

사용자가 라이트박스(편집 폼)를 열기 직전에 발생하는 이벤트입니다.

onBeforeLightbox: (id: string) => boolean

Parameters

  • id - (required) string - 이벤트의 id

Returns

  • result - (boolean) - 이벤트의 기본 동작이 진행될지(true) 중단될지(false) 결정합니다.

Example

scheduler.attachEvent("onBeforeLightbox", function (id){
//여기에 커스텀 로직을 추가할 수 있습니다
return true;
});

Details

이 이벤트는 차단할 수 있습니다. false를 반환하면 기본 동작(라이트박스 열기)이 중단됩니다.

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.