Class
TelerikPopup

Represents the Telerik UI Popup component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikPopup : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikPopup

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikPopup()

Declaration

cs-api-definition
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

cs-api-definition
[Parameter]
public PopupAnchorHorizontalAlign AnchorHorizontalAlign { get; set; }

Property Value

PopupAnchorHorizontalAlign

AnchorSelector

Specifies the selector of the element that will be used as an anchor. The popup will open next to that element.

Declaration

cs-api-definition
[Parameter]
public string AnchorSelector { get; set; }

Property Value

string

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

cs-api-definition
[Parameter]
public PopupAnchorVerticalAlign AnchorVerticalAlign { get; set; }

Property Value

PopupAnchorVerticalAlign

AnimationDuration

The duration of the open/close animation in milliseconds.

Declaration

cs-api-definition
[Parameter]
public int AnimationDuration { get; set; }

Property Value

int

AnimationType

The effect to use for playing the open/close animation.

Declaration

cs-api-definition
[Parameter]
public AnimationType AnimationType { get; set; }

Property Value

AnimationType

ChildContent

The Popup Component content.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Height

The height of the popup.

Declaration

cs-api-definition
[Parameter]
public string Height { get; set; }

Property Value

string

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

cs-api-definition
[Parameter]
public PopupHorizontalAlign HorizontalAlign { get; set; }

Property Value

PopupHorizontalAlign

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

cs-api-definition
[Parameter]
public PopupCollision HorizontalCollision { get; set; }

Property Value

PopupCollision

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

cs-api-definition
[Parameter]
public double HorizontalOffset { get; set; }

Property Value

double

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

cs-api-definition
[Parameter]
public PopupVerticalAlign VerticalAlign { get; set; }

Property Value

PopupVerticalAlign

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

cs-api-definition
[Parameter]
public PopupCollision VerticalCollision { get; set; }

Property Value

PopupCollision

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

cs-api-definition
[Parameter]
public double VerticalOffset { get; set; }

Property Value

double

Width

The width of the popup.

Declaration

cs-api-definition
[Parameter]
public string Width { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Hide()

Closes the popup.

Declaration

cs-api-definition
public void Hide()

Refresh()

Refreshes the popup element and its position.

Declaration

cs-api-definition
public void Refresh()

Show()

Opens the popup.

Declaration

cs-api-definition
public void Show()