Get visibility (Beta)
Get visibility (Beta)
element.getVisibility()
Get the visibility of an element or whether its visibility state is bound to a data source.
Verify that the element has the visibility property before calling this method.
Beta
These methods are in public beta and may change with future releases.
Syntax
Parameters
options(optional):{ bindings: true }— When passed, returns binding metadata instead of the resolved boolean value if the visibility is bound to a data source.
Returns
Promise<boolean>:trueif the element is visible,falseif it is hidden.Promise<boolean | BindingValue | null>(when{ bindings: true }is passed): ABindingValueobject if the visibility is bound to a data source, ornullif the visibility is unset.
Example
Designer Ability
Checks for authorization only.