ClassTelerikPopup
Represents the Telerik UI Popup component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikPopup : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikPopup
Implements:
Inherited Members
Constructors
TelerikPopup()
Declaration
public TelerikPopup()
Properties
AnchorHorizontalAlign
In combination with AnchorVerticalAlign, this specifies the point on the anchor to which the popup element should be attached. The available X options are: LeftCenterRight By default the point to which the popup element is attached is the bottom-left corner of the anchor.
Declaration
[Parameter]
public PopupAnchorHorizontalAlign AnchorHorizontalAlign { get; set; }
Property Value
AnchorSelector
Specifies the selector of the element that will be used as an anchor. The popup will open next to that element.
Declaration
[Parameter]
public string AnchorSelector { get; set; }
Property Value
AnchorVerticalAlign
In combination with AnchorHorizontalAlign, this specifies the point on the anchor to which the popup element should be attached. The available Y options are: BottomCenterTop By default the point to which the popup element is attached is the bottom-left corner of the anchor.
Declaration
[Parameter]
public PopupAnchorVerticalAlign AnchorVerticalAlign { get; set; }
Property Value
AnimationDuration
The duration of the open/close animation in milliseconds.
Declaration
[Parameter]
public int AnimationDuration { get; set; }
Property Value
AnimationType
The effect to use for playing the open/close animation.
Declaration
[Parameter]
public AnimationType AnimationType { get; set; }
Property Value
ChildContent
The Popup Component content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Height
The height of the popup.
HorizontalAlign
In combination with VerticalAlign specifies which point of the popup element to attach to the anchor's origin point. The available X options are: LeftCenterRight. By default, the attached point is the top-left corner of the popup element.
Declaration
[Parameter]
public PopupHorizontalAlign HorizontalAlign { get; set; }
Property Value
HorizontalCollision
Specifies the behavior of the Popup when it does not fit in the viewport. Valid values are: Flip - the popup will flip if there is sufficient available space on the opposite side. Fit - the popup will be shifted (moved) until it is fully visible. By default, the Popup fits horizontally when there is a collision.
Declaration
[Parameter]
public PopupCollision HorizontalCollision { get; set; }
Property Value
HorizontalOffset
Specifies the horizontal offset value, in pixels, to be added to the popup position, creating a blank space between the popup and the anchor.
Declaration
[Parameter]
public double HorizontalOffset { get; set; }
Property Value
VerticalAlign
In combination with HorizontalAlign specifies which point of the popup element to attach to the anchor's origin point. The available Y options are: BottomCenterTop By default, the attached point is the top-left corner of the popup element.
Declaration
[Parameter]
public PopupVerticalAlign VerticalAlign { get; set; }
Property Value
VerticalCollision
Specifies the behavior of the Popup when it does not fit in the viewport. Valid values are: Flip - the popup will flip if there is sufficient available space on the opposite side. Fit - the popup will be shifted (moved) until it is fully visible. By default, the Popup flips vertically when there is a collision.
Declaration
[Parameter]
public PopupCollision VerticalCollision { get; set; }
Property Value
VerticalOffset
Specifies the vertical offset value, in pixels, to be added to the popup position, creating a blank space between the popup and the anchor.
Declaration
[Parameter]
public double VerticalOffset { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Refresh()
Refreshes the popup element and its position.
Declaration
public void Refresh()