DiviArea.getOverlay()

DiviArea.getOverlay()

Always returns the modal overlay element. When the modal does not exist yet, this method will create and initialize the overlay.

You can use this method to access the overlay modal even when it’s not visible. The plugin creates exactly one overlay which is reused by all Popups on the page.

Params

no Params

Returns

Returns the jQuery element of the modal overlay.

Examples

// Add a custom CSS class to the overlay.
DiviArea.getOverlay().addClass('custom-overlay-class');

Notes

No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us