New to Telerik UI for BlazorStart a free 30-day trial

A component that shows contextual hints for elements matched by TargetSelector. Configure content via Template (receives TooltipTemplateContext), position with Position, and trigger using ShowOn. Control timing through ShowDelay and HideDelay, and dimensions with Width/Height. Optionally set an explicit tooltip id via Id for accessibility.

Definition

Constructors

C#
public TelerikTooltip()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)

C#
protected override Task OnInitializedAsync()
Returns:

Task

Overrides: BaseComponent.OnInitializedAsync()

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: ComponentBase.OnParametersSetAsync()

C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: ComponentBase.SetParametersAsync(ParameterView)

Properties

Specifies the behavior of the Tooltip when it does not fit in the viewport. Valid values are: Flip - the tooltip will flip if there is sufficient available space on the opposite side. Fit - the tooltip will be shifted (moved) until it is fully visible. By default, the Tooltip fits inside the viewport when there is a collision.

C#
[Parameter]
public TooltipCollision? Collision { get; set; }

Defines the height of the Component as a CSS value.

C#
[Parameter]
public string Height { get; set; }

The delay before the closing of the Tooltip in milliseconds.

C#
[Parameter]
public int HideDelay { get; set; }

Specifies id attribute of the Tooltip element. Can be useful so you can point an aria-described-by attribute of your target to the tooltip ID for the benefit of screen readers.

C#
[Parameter]
public string Id { get; set; }

Defines the placement of the Tooltip in relation to its target. Supports Top, Bottom, Left and Right position.

C#
[Parameter]
public TooltipPosition Position { get; set; }

The delay before the opening of the Tooltip in milliseconds.

C#
[Parameter]
public int ShowDelay { get; set; }

Defines the event which will trigger the Tooltip to show. The possible events are Click and Hover. The default value is Hover.

C#
[Parameter]
public TooltipShowEvent ShowOn { get; set; }

Specifies the selector for the target elements of the tooltip. Uses CSS-type selectors.

C#
[Parameter]
public string TargetSelector { get; set; }

Specifies the template for the content of the tooltip. The @context of the template contains all data attribute of the target element, lowercase, and the title attribute of the target.

C#
[Parameter]
public RenderFragment<TooltipTemplateContext> Template { get; set; }

Defines the width of the Component as a CSS value. The default value is "auto".

C#
[Parameter]
public string Width { get; set; }