TelerikPopover
A contextual popover that shows header, body, and optional action buttons next to an anchor element. Target via AnchorSelector, position with Position, offset using Offset, and collision handling through Collision. Configure callout visibility with ShowCallout, trigger behavior via ShowOn, size using Width/Height, and animations through AnimationType/AnimationDuration. Content slots: PopoverHeader, PopoverContent, PopoverActions (layout via ActionsLayout). Programmatic API: Show(), Hide(), Refresh(). Children: PopoverActions, PopoverHeader, PopoverContent.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikPopover : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable
Inheritance: objectComponentBaseBaseComponentTelerikPopover
Implements:
Inherited Members
Constructors
public TelerikPopover()
Properties
Specifies the selector of the element that will be used as an anchor. The popover will open next to that element.
[Parameter]
public string AnchorSelector { get; set; }
The duration of the open/close animation in milliseconds.
[Parameter]
public int AnimationDuration { get; set; }
The effect to use for playing the open/close animation.
[Parameter]
public AnimationType AnimationType { get; set; }
[Accessibility] Describes the Popover content container by the text of other elements. Set it to the space-separated IDs of those elements, for example "popover-help popover-note".
Use it for additional details, and AriaLabel or AriaLabelledBy for the name.
[Parameter]
public string AriaDescribedBy { get; set; }
[Accessibility] Sets the accessible name of the Popover content container, for example "Appointment details", when the Popover has no visible text that can name it.
If AriaLabelledBy is also set, assistive technologies use it instead of this value.
[Parameter]
public string AriaLabel { get; set; }
[Accessibility] Names the Popover content container by the text of other elements. Set it to the space-separated IDs of those elements, for example "popover-title".
It takes precedence over AriaLabel. Use AriaDescribedBy for extra explanation instead of a name.
[Parameter]
public string AriaLabelledBy { get; set; }
[Accessibility] Sets the ARIA role of the Popover content container, for example "dialog" when the Popover holds interactive content such as a form or buttons.
Use it together with AriaLabel or AriaLabelledBy so that assistive technologies announce the Popover with a name.
[Parameter]
public string AriaRole { get; set; }
Specifies the behavior of the Popover when it does not fit in the viewport. Valid values are: Flip - the popover will flip if there is sufficient available space on the opposite side. Fit - the popover will be shifted (moved) until it is fully visible. By default, the Popover flips vertically when there is a collision.
[Parameter]
public PopoverCollision Collision { get; set; }
Exposes Show and Hide tools to browser AI models when true. Defaults to false.
Tools use the configured AnchorSelector and content without activating PopoverActions.
[Parameter]
public bool EnableWebMcpTools { get; set; }
Specifies the offset value, in pixels, to be added to the popover position, creating a blank space between the popover and the anchor.
[Parameter]
public double Offset { get; set; }
Container tag for the popover action buttons.
[Parameter]
public RenderFragment PopoverActions { get; set; }
The body content of the popover.
[Parameter]
public RenderFragment PopoverContent { get; set; }
The header content of the popover.
[Parameter]
public RenderFragment PopoverHeader { get; set; }
Configures visibility tools, for example a name that distinguishes contextual help. Children: PopoverWebMcpSettings.
[Parameter]
public RenderFragment PopoverSettings { get; set; }
Defines whether the Popover callout will be displayed.
[Parameter]
public bool ShowCallout { get; set; }
Define the event that triggers the opening of the popover. The supported values are: Click MouseEnter If the value is set to Click the popover will close when the user clicks outside the popover. If the value is set to MouseEnter the popover will close when the pointer leaves the popover.
[Parameter]
public PopoverShowOn? ShowOn { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override void Dispose()
Overrides:
Closes the popup.
public void Hide()
Refreshes the popup element and its position.
public void Refresh()
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
Opens the popup.
public void Show()