smartVISU
provides functions to add tooltips to it's design elenents or embed popups with help texts into the html page.
1. Tooltips
Put the widget into a html tag containing the attribute "data-tip" and the tooltip text.
Note: this may not work on mobile devices running Android since the hover effect is not supported.
Example
<span data-tip= "Switch for the mirror light">
{{ basic.stateswitch('', 'bath.light.switch', 'mini', '', 'llight_mirror.svg') }}
</span>
2. Popups with Help Texts
Put the widget and the popup into a div-tag carrying the class "ui-help-container". Make sure to give the popup a unique id. Including the page in the id is recommended in order to avoid cross-page disturbances.
As shown above, the standard help popup expects the classes "ui-help-container" and "ui-help-icon" on different levels. If the layout requires working without an additional div tag the styles can be defined in the file ./pages/yourpages/visu.css.
Or define the styles directly in the img-tag for the anchor icon:
style = "width: 2em; height: 2em;"
Then call the popup directly with both classes in the anchor tag.