A lightbox pops up on your site to grab your visitor's attention.
To use the Lightbox API, import
wixWindow from the
The APIs in
wix-window.lightbox can only be used in front-end code.
Closes the lightbox.
close function closes the lightbox and returns the given data to the
openLightbox() function that was used to open the lightbox.
The data to pass back to
Close the lightbox
Close the lightbox and pass back data to the opening function
Returns the data object that was passed to a lightbox.
getContext() function returns the data object passed when the lightbox was opened using the
openLightbox() function, if any data was passed. If the lightbox was opened another way,
|Object||The data object that was passed to the lightbox.|
Get the data that was passed to the lightbox