title | page_title | description | slug | tags | published | position |
---|---|---|---|---|---|---|
Position |
Tooltip - Position |
Choose the position of the Tooltip for Blazor relative to its target. |
tooltip-position |
telerik,blazor,upload,async,validate,validation |
true |
2 |
The Tooltip component lets you define the location of its popup according to its target element.
You can control it through the Position
parameter, which takes a member of the Telerik.Blazor.TooltipPosition
enum:
Top
- the default valueBottom
Right
Left
caption The possible positions of the tooltip relative to its target
caption Explore the possible tooltip positions
@* Setting a position is not mandatory, it defaults to Top *@
<select @bind=@position>
@foreach (var item in Enum.GetValues(typeof(TooltipPosition)))
{
<option value=@item>@item</option>
}
</select>
<TelerikTooltip TargetSelector="#target" Position="@position">
</TelerikTooltip>
<div id="target" title="@position">hover me to see the tooltip</div>
@code {
TooltipPosition position { get; set; } = TooltipPosition.Top;
}
<style>
#target {
margin: 200px;
width: 200px;
border: 1px solid red;
}
</style>
- [Choose a Tooltip Show Event]({%slug tooltip-show-event%})
- [Explore ToolTip Templates]({%slug tooltip-template%})
- [Blazor Tooltip Overview]({%slug tooltip-overview%})
- Live Demo: Tooltip Position