DiviArea.getOverlay()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. 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