Перейти к основному содержимому

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>

Details

Чтобы закрыть кастомный лайтбокс, можно использовать метод endLightbox.

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.