expand( )
Expands the element and sets its collapsed
property to false
.
The expand()
function returns a Promise that is resolved when the
element's collapsed
property has been set to false
.
To learn about the behavior of an expanded element,
see the collapsed
property.
Notes:
-
In Wix Studio, an element will not become visible by using
expand()
if it has been marked as "Don't Display" for the current breakpoint. Callingexpand()
will however, change thecollapsed
property of the element tofalse
. -
It is recommended not to mix
expand()
andcollapse()
with Hide and Show in Wix Studio.
Method Declaration
Copy
Request
This method does not take any parameters
Was this helpful?
Yes
No