Indicates if the element is actually visible.
true, the element is displayed on the page.
false, the element is not displayed on the page.
The value of the
isVisible property is calculated based on the
properties of the element and all of its ancestors. It is
only if the conditions exist in the element's property values and the
property values of its ancestors such that the element is actually
displayed on the page.
isVisibleproperty is not the same as its hidden property. The
isVisibleproperty indicates whether the element is actually displayed, while
hiddenindicates if it should be displayed.
isVisibleproperty of an element remains
trueeven if another element completely covers it so that a user cannot see it.
In Editor X, even if the
isVisibleproperty of the element is
true, it will not be displayed if the element has been set to "Don't Display" for the current breakpoint.
Was this helpful?
Get whether an element is visible
1let isVisible = $w("#myElement").isVisible; // true