resetLightbox
Description
현재 라이 트박스의 HTML 객체 요소를 제거합니다.
resetLightbox: () => void
Example
var full_lightbox = [
{ name: "description", map_to: "text", type: "textarea", focus: true},
{ name: "time", map_to: "auto", type: "time"}
];
var restricted_lightbox = [
{ name: "description", map_to: "text", type: "textarea", focus: true},
];
...
scheduler.attachEvent("onBeforeLightbox", function(event_id) {
scheduler.resetLightbox();
var ev = scheduler.getEvent(event_id);
if (ev.restricted ==true){
scheduler.config.lightbox.sections = restricted_lightbox;
} else {
scheduler.config.lightbox.sections = full_lightbox;
};
return true;
});
Related samples
Details
이 메서드는 라이트박스 설정을 동적으로 업데이트할 수 있도록 해줍니다: 현재 라이트박스 요소를 제거한 후 라이트박스 구성에 따라 새로운 요소를 생성합니다.
Related Guides
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.