title | description | type | page_title | slug | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|
Hide the Tooltip Callout or Change Its Position |
Learn how to customize the appearance and behavior of the Tooltip small arrow, including adjusting the callout position and hiding it when necessary. |
how-to |
Hide the Tooltip Callout or Change Its Position |
tooltip-kb-callout-position |
tooltip, styling, callout |
1628953, 1565205 |
kb |
Product | Tooltip for Blazor |
This Knowledge Base article answers the following questions:
- How to customize the Tooltip callout?
- How to change the position of the Tooltip callout?
- How to modify the position of the small arrow of a Tooltip?
- How to hide the Tooltip callout?
- Set a custom CSS class to the Tooltip through the
Class
parameter. This configuration allows you to target specific Tooltip instances. - Use the defined class to override the theme styles.
- Customize the callout (small arrow) position by using this CSS combinator
.your-class .k-callout
, to suit your specific requirements. - Set a value for the
TargetSelector
parameter of the Tooltip.
caption Blazor Tooltip with custom callouts positions
<TelerikTooltip Class="left-callout" TargetSelector=".tooltip-callout-left" />
<TelerikTooltip Class="no-callout" TargetSelector=".tooltip-no-callout" />
<TelerikTooltip Class="right-callout" TargetSelector=".tooltip-callout-right" />
<div style="padding: 2em">
<TelerikButton Title="Tooltip content"
Class="tooltip-callout-left">
Left callout
</TelerikButton>
<TelerikButton Title="Tooltip content"
Class="tooltip-no-callout">
No callout
</TelerikButton>
<TelerikButton Title="Tooltip content"
Class="tooltip-callout-right">
Right callout
</TelerikButton>
</div>
<style>
/* hiding the small arrow */
.no-callout .k-callout {
display: none;
}
/* moving the small arrow to the left */
.left-callout .k-callout {
left: 20px !important;
}
/* moving the small arrow to the right */
.right-callout .k-callout {
left: initial !important;
right: 20px;
}
</style>
- Tooltip Overview
- Tooltip Position