Search.../

tooltip

Sets or gets an element's tooltip. Maximum length is 1200 characters.

Description

Setting the tooltip property defines the text that is displayed when a user hovers on an element's tooltip-icon icon.

Type:

stringRead & Write

Was this helpful?

Get an element's tooltip

Copy Code
1let tooltip = $w("#myElement").tooltip; // "Tooltip text"
Set an element's tooltip

Copy Code
1$w("#myElement").tooltip = "New tooltip";