function sap/ui/dom/isHidden

Visiblity: restricted
Available since: N/A
Module: sap/ui/dom/isHidden
Application Component:

Checks whether an Element is invisible for the end user.

This is a combination of jQuery's :hidden selector (but with a slightly different semantic, see below) and a check for CSS visibility 'hidden'.

Since jQuery 2.x, inline elements, such as span, might be considered 'visible' although they have zero dimensions (for example, an empty span). In jQuery 1.x, such elements had been treated as 'hidden'.

As some UI5 controls rely on the old behavior, this method restores it.


Parameters Overview

Param Type Default Value Description
oElem Element Element to check the dimensions for

Methods Overview

Method Description