startLightbox
Description
Отображает кастомный лайтбокс внутри указанного HTML контейнера, центрированного на экране
startLightbox: (id: string, box: HTMLElement) => void
Parameters
id- (required) string - id событияbox- (required) HTMLElement - HTML контейнер для лайтбокса
Example
<div id="my_form">
...
</div>
<script>
scheduler.showLightbox = function(id) {
scheduler.startLightbox(id, document.getElementById("my_form"));
...
};
</script>
Related samples
Details
Чтобы закрыть кастомный лайтбокс, можно использовать метод 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.