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
Inheritance: objectComponentBaseBaseComponentTelerikPopover
Implements:
Inherited Members
Constructors
public TelerikPopover()
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()
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; }
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; }
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; }
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; }