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
title
attribute value of its anchor element is assigned to adata-title
attribute. - The
title
attribute value of its anchor element is set to an empty sting.
- The
-
When the Tooltip is closed, the current value of the
data-title
attribute is set back to thetitle
attribute.
Angular has a specific behavior when the
attr.title
andtitle
values are set tonull
orundefined
:
- The
attr.title
binding—Setting the value tonull
orundefined
removes thetitle
attribute from the DOM element.- The
title
binding—Setting the value tonull
orundefined
changes the value of thetitle
attribute to thenull
orundefined
string.