Search.../

tooltip

Sets or gets an element's tooltip.

Description

Setting the tooltip property defines the text that is displayed when a visitor hovers over an element's tooltip-icon icon. Set tooltip to null to disable.

Max: 1200 characters

Type:

stringRead & Write

Was this helpful?

Get the dashboard info icon's tooltip

Copy Code
1let myText = $w('#myInfoIcon').tooltip; // "This message explains the purpose of a feature."
Set the dashboard info icon's tooltip

Copy Code
1$w('#myInfoIcon').tooltip = "This message explains the purpose of a feature.";
Disable the dashboard info icon's tooltip

Copy Code
1$w('#myElement').tooltip = null; // Disables the tooltip