Search...
expandIcon( )
Expands the button’s icon and sets its iconCollapsed
property to false
.
Description
The expandIcon()
function returns a Promise that resolves when the element's iconCollapsed
property is set to false
.
Syntax
function expandIcon(): Promise<void>
expandIcon Parameters
This function does not take any parameters.
Returns
Fulfilled - when the element's iconCollapsed
property is set to false
.
Return Type:
Promise<void>
Related Content:
Was this helpful?
Expand a button's icon
Copy Code
1$w('#myButton').expandIcon();
Expand a button's icon when a site visitor hovers over the button
Copy Code
1$w('#myButton').onMouseIn((event) => {2 $w("#myButton").expandIcon();3});