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 thehidden
property of the element tofalse
.
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>
Mixed in from:$w.MobileHiddenCollapsedMixin
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}