Skip to main content

startLightbox

Description

Shows a custom lightbox in the specified HTML container centered on the screen

startLightbox: (id: string, box: HTMLElement) => void

Parameters

  • id - (required) string - the event's id
  • box - (required) HTMLElement - the lightbox's HTML container

Example

<div id="my_form">
...
</div>

<script>
scheduler.showLightbox = function(id) {
scheduler.startLightbox(id, document.getElementById("my_form"));
...
};
</script>

Details

To hide a custom lightbox you can use the endLightbox method.

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.