跳转到主要内容

endLightbox

Description

用于关闭lightbox

endLightbox: (mode: boolean, box?: HTMLElement) => void

Parameters

  • mode - (required) boolean - 当设置为true时,lightbox中的任何更改将在关闭前保存。
    如果设置为false,更改将被丢弃。
  • box - (optional) HTMLElement - 包含lightbox的HTML元素

Example

scheduler.endLightbox(false);
//或
scheduler.endLightbox(true, document.getElementById("my_form"));

Details

注释

此方法通常在使用自定义lightbox时调用

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.