TelerikTooltip
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikTooltip : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikTooltip
Implements:
Inherited Members
Constructors
public TelerikTooltip()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override void Dispose()
Overrides:
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
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.
[Parameter]
public TooltipCollision? Collision { get; set; }
Defines the height of the Component as a CSS value.
[Parameter]
public string Height { get; set; }
The delay before the closing of the Tooltip in milliseconds.
[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.
[Parameter]
public string Id { get; set; }
The delay before the opening of the Tooltip in milliseconds.
[Parameter]
public int ShowDelay { get; set; }
Specifies the selector for the target elements of the tooltip. Uses CSS-type selectors.
[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.
[Parameter]
public RenderFragment<TooltipTemplateContext> Template { get; set; }