Search.../

show( )

Shows the element and sets its hidden property to false.

Description

The show() function shows the element and returns a Promise that is resolved when the effect is complete and the element's hidden property has been set to false.

Note: Calling show() will change the hidden property of the element to false.

Syntax

function show(): Promise<void>

show Parameters

This function does not take any parameters.

Returns

Fulfilled - When the element's hidden property has been set to false.

Return Type:

Promise<void>

Was this helpful?

Show an element

Copy Code
1$w("#myMobileElement").show();
Toggle an element's hidden state

Copy Code
1if( $w("#myMobileElement").hidden ) {
2 $w("#myMobileElement").show();
3}
4else {
5 $w("#myMobileElement").hide();
6}