DiviArea.hide()

  1. Home
  2. Knowledge Base
  3. JS API
  4. DiviArea.hide()
DiviArea.hide(id)

// Alias:
DiviPopup.hide(id)

Closes the specified Area. When the Area is not open, nothing happens.

Popup Areas:
Upon closing the last popup, the background overlay is removed as well by callingĀ DiviArea.hideOverlay().

Params

id
(string|jQuery) Optional. Identifies the Area to hide. The #-prefix is optional.
When no ID is specified, the top-most Area is hidden.

Returns

The function returns nothing.

Examples

// The "#" prefix is optional. Following statements are identical:
DiviArea.hide('sample');
DiviArea.hide('#sample');
// Close the top most area.
DiviArea.hide();

Notes

This function was previously named DiviPopup.closePopup().

Was this article helpful?

Related Articles