isVisible
Indicates if the element is actually visible.
Description
If isVisible
is true
, the element is displayed on the app.
If isVisible
is false
, the element is not displayed on the app.
The value of the isVisible
property is calculated based on the
hidden
and collapsed
properties of the element and all of its ancestors.
isVisible
is true
only the element is displayed on the app.
This means that for the element and its ancestors, hidden
and
collapsed
are false
.
Notes:
An element's
isVisible
property is not the same as its hidden property. TheisVisible
property indicates whether the element is actually displayed, whilehidden
indicates if it should be displayed.The
isVisible
property of an element remainstrue
even if another element completely covers it so that a user cannot see it.
Type:
Was this helpful?
Get whether an element is visible
1let isVisible = $w("#myMobileElement").isVisible; // true