New to Kendo UI for Angular? Start a free 30-day trial
Programmatic Control
The Tooltip provides options for consuming its API programmatically.
To show a Tooltip by invoking its API, either invoke it from templates or from the methods of the component.
In Templates
- Get the
kendoTooltip
instance from theTooltipContainer
element. - Set the
showOn
property tonone
to disable the default behaviour that shows and hides the ToolTip on hover. - Use the Tooltip API to control the Tooltip. For example, call
tooltip.toggle(element)
to toggle the Tooltip above theanchor
element.
Change Theme
Theme
Loading ...
In Component Methods
- Add the
import { TooltipDirective } from '@progress/kendo-angular-tooltip';
statement to yourAppComponent
. - To disable the default rendering on hover, add the
kendoTooltip
directive to the template and set theshowOn
property tonone
. - In the component code, get the
TooltipDirective
instance through a@ViewChild
property. - Use the Tooltip API to show, hide, or toggle the Tooltip.
Change Theme
Theme
Loading ...