New to Kendo UI for Angular? Start a free 30-day trial
Customizing the Styling of the Tooltip
Environment
Product | Progress® Kendo UI for Angular Tooltip |
Description
How can I customize the styling of the Kendo UI for Angular Tooltip?
Solution
Overwrite the built-in styles of the internal elements in the Tooltip.
-
Add a custom class to the Tooltip wrapper by using
tooltipClass
.ts<div kendoTooltip tooltipClass="my-class" style="text-align: center; padding-top: 10px;">...
-
Target specific or all inner elements, and provide the desired CSS rules.
css.my-class * { font-size: 1.2em; color: yellow; background: blue; }
-
Handle the specific rendering and styling of the callout (
arrow
) elements too.css.my-class .k-callout { background-color: transparent; color: blue; }
The following example demonstrates the full implementation of the suggested approach.
Change Theme
Theme
Loading ...