Default Configuration
To specify elements which render tooltips, wrap these elements in a kendoTooltip directive.
The default configuration of the Tooltip directive enables you to show a custom tooltip instead of the tooltip of the default browser. All elements with the title attribute inside the kendoTooltip directive display a tooltip. If neither a title attribute nor other configuration is provided, the tooltip is not rendered.
To prevent the display of the default browser tooltip, the current implementation of the Kendo UI for Angular Tooltip relies on the following approach:
-
When the Tooltip is open:
- The
titleattribute value of its anchor element is assigned to adata-titleattribute. - The
titleattribute value of its anchor element is set to an empty sting.
- The
-
When the Tooltip is closed, the current value of the
data-titleattribute is set back to thetitleattribute.
Angular has a specific behavior when the
attr.titleandtitlevalues are set tonullorundefined:
- The
attr.titlebinding—Setting the value tonullorundefinedremoves thetitleattribute from the DOM element.- The
titlebinding—Setting the value tonullorundefinedchanges the value of thetitleattribute to thenullorundefinedstring.