startLightbox
Description
在指定的 HTML 容器内显示自定义的 lightbox,并居中显示在屏幕上
startLightbox: (id: string, box: HTMLElement) => void
Parameters
id- (required) string - 事件的 idbox- (required) HTMLElement - lightbox 的 HTML 容器
Example
<div id="my_form">
...
</div>
<script>
scheduler.showLightbox = function(id) {
scheduler.startLightbox(id, document.getElementById("my_form"));
...
};
</script>
Related samples
Details
要关闭自定义 lightbox,可以使用 endLightbox 方法。
Related API
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.