Lightbox
Lightbox is a type of format. Designers can create two different designs like a Fully Fluid Format and a Lightbox Format. This allows showing completely two different designs based on a certain event.
There are two ways of opening a Lightbox:
Adding a click action from the editor.
Using the Radical API to open the Lightbox format.
There are two ways of closing a Lightbox:
Adding a click action from the editor.
Using the Radical API to close the Lightbox format.
When a Lightbox Format is opened, it triggers the onAdRender
function. If you need to access the Lightbox instance, you can use the onAdRender
function after opening it.
Here is an example of how to access the Lightbox instance:
Inside the onAdRender
function:
Was this helpful?