collapse( )

Collapses the element and sets its collapsed property to true.

The collapse() function returns a Promise that is resolved when the element's collapsed property has been set to true.

To learn about the behavior of a collapsed element, see the collapsed property.

You can also collapse an element when the app loads by using the Properties panel in the Editor.

Method Declaration
Copy
Request
This method does not take any parameters
Was this helpful?
Yes
No