Class
TelerikNotification

The class for the Telerik Notification component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseBaseComponentTelerikNotification

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

TelerikNotification()

Declaration

cs-api-definition
public TelerikNotification()

Properties

AnimationDuration

Defines the Duration of the animation for showing and hiding notifications.

Declaration

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

Property Value

int

AnimationType

Defines the Animation type for showing and hiding notifications.

Declaration

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

Property Value

AnimationType

AriaLabel

Describe the aria-label attribute for the component.

Declaration

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

Property Value

string

HorizontalPosition

Defines the Horizontal Position of the Notifications.

Declaration

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

Property Value

NotificationHorizontalPosition

Template

Defines the Template for the notifications.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<NotificationModel> Template { get; set; }

Property Value

RenderFragment<NotificationModel>

VerticalPosition

Defines the Vertical Position of the Notifications.

Declaration

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

Property Value

NotificationVerticalPosition

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

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

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Hide(NotificationModel)

Hide a notification.

Declaration

cs-api-definition
public void Hide(NotificationModel model)

Parameters

model

NotificationModel

HideAll()

Hide all notifications.

Declaration

cs-api-definition
public void HideAll()

Show(NotificationModel)

Shows new notification.

Declaration

cs-api-definition
public void Show(NotificationModel model)

Parameters

model

NotificationModel

Show(string, string)

Shows new notification.

Declaration

cs-api-definition
public void Show(string text, string themeColor)

Parameters

text

string

themeColor

string