Table of Contents

Class RadzenAlert

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenAlert component.

public class RadzenAlert : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenAlert
Implements
Inherited Members

Examples

<RadzenAlert>
    <ChildContent>
        Content
    </ChildContent>
</RadzenAlert>

Constructors

RadzenAlert()

public RadzenAlert()

Properties

AlertStyle

Gets or sets the severity.

[Parameter]
public AlertStyle AlertStyle { get; set; }

Property Value

AlertStyle

The severity.

AllowClose

Gets or sets a value indicating whether close is allowed. Set to true by default.

[Parameter]
public bool AllowClose { get; set; }

Property Value

bool

true if close is allowed; otherwise, false.

Close

Gets or sets the callback which is invoked when the alert is closed by the user.

[Parameter]
public EventCallback Close { get; set; }

Property Value

EventCallback

Icon

Gets or sets the icon.

[Parameter]
public string Icon { get; set; }

Property Value

string

The icon.

IconColor

Gets or sets the icon color.

[Parameter]
public string IconColor { get; set; }

Property Value

string

The icon color.

Shade

Gets or sets the color shade of the alert.

[Parameter]
public Shade Shade { get; set; }

Property Value

Shade

The color shade of the alert.

ShowIcon

Gets or sets a value indicating whether icon should be shown. Set to true by default.

[Parameter]
public bool ShowIcon { get; set; }

Property Value

bool

true if icon is shown; otherwise, false.

Size

Gets or sets the size.

[Parameter]
public AlertSize Size { get; set; }

Property Value

AlertSize

The size.

Text

Gets or sets the text of the alert. Overriden by ChildContent.

[Parameter]
public string Text { get; set; }

Property Value

string

The title.

Title

Gets or sets the title.

[Parameter]
public string Title { get; set; }

Property Value

string

The title.

Variant

Gets or sets the design variant of the alert.

[Parameter]
public Variant Variant { get; set; }

Property Value

Variant

The variant of the alert.

VisibleChanged

Gets or sets the callback which is invoked when the alert is shown or hidden.

[Parameter]
public EventCallback<bool> VisibleChanged { get; set; }

Property Value

EventCallback<bool>

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

OnInitialized()

protected override void OnInitialized()

SetParametersAsync(ParameterView)

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task