doAction( “hide_overlay” )

doAction( "hide_overlay", $overlay );

The background overlay was removed from the DOM


$overlay jQuery, required
The jQuery object of the overlay element.


// Display a console message after the modal overlay was hidden again.
DiviArea.addAction( 'hide_overlay', function( overlay ) {
    console.log('The overlay is hidden again!')


The $overlay parameter is a reference to the permanent jQuery overlay element. Though it is hidden, it will not be destroyed and can be accessed and manipulated for the next time it is displayed.

Was this article helpful?

Related Articles

Need Support?

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