Search.../

collapseIcon( )

Collapses the button’s icon and sets its iconCollapsed property to true.

Description

The collapseIcon() function returns a Promise that resolves when the element's iconCollapsed property is set to true.

Syntax

function collapseIcon(): Promise<void>

collapseIcon Parameters

This function does not take any parameters.

Returns

Fulfilled - when the element's iconCollapsed property is set to true.

Return Type:

Promise<void>

Related Content:

Was this helpful?

Collapse a button's icon

Copy Code
1$w('#myButton').collapseIcon();
Collapse a button's icon when a site visitor stops hovering over the button

Copy Code
1$w('#myButton').onMouseOut( (event) => {
2 $w("#myButton").collapseIcon();
3});