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 kendoTooltipinstance from theTooltipContainerelement.
- Set the showOnproperty tononeto 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 theanchorelement.
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 kendoTooltipdirective to the template and set theshowOnproperty tonone.
- In the component code, get the TooltipDirectiveinstance through a@ViewChildproperty.
- Use the Tooltip API to show, hide, or toggle the Tooltip.
Change Theme
Theme
Loading ...