Search.../

collapseIcon( )

Collapses the icon of a slideshow button 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 slideshow button icon

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

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