Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenAlert

    RadzenAlert component.

    Inheritance
    System.Object
    RadzenComponent
    RadzenComponentWithChildren
    RadzenAlert
    Implements
    IDisposable
    Inherited Members
    RadzenComponentWithChildren.ChildContent
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.OnAfterRenderAsync(Boolean)
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.CurrentStyle
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenAlert : RadzenComponentWithChildren, IDisposable
    Examples
    <RadzenAlert>
        <ChildContent>
            Content
        </ChildContent>
    </RadzenAlert>

    Properties

    AlertStyle

    Gets or sets the severity.

    Declaration
    public AlertStyle AlertStyle { get; set; }
    Property Value
    Type Description
    AlertStyle

    The severity.

    AllowClose

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

    Declaration
    public bool AllowClose { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if close is allowed; otherwise, false.

    Close

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

    Declaration
    public EventCallback Close { get; set; }
    Property Value
    Type Description
    EventCallback

    Icon

    Gets or sets the icon.

    Declaration
    public string Icon { get; set; }
    Property Value
    Type Description
    System.String

    The icon.

    IconColor

    Gets or sets the icon color.

    Declaration
    public string IconColor { get; set; }
    Property Value
    Type Description
    System.String

    The icon color.

    Shade

    Gets or sets the color shade of the alert.

    Declaration
    public Shade Shade { get; set; }
    Property Value
    Type Description
    Shade

    The color shade of the alert.

    ShowIcon

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

    Declaration
    public bool ShowIcon { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if icon is shown; otherwise, false.

    Size

    Gets or sets the size.

    Declaration
    public AlertSize Size { get; set; }
    Property Value
    Type Description
    AlertSize

    The size.

    Text

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

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    The title.

    Title

    Gets or sets the title.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    System.String

    The title.

    Variant

    Gets or sets the design variant of the alert.

    Declaration
    public Variant Variant { get; set; }
    Property Value
    Type Description
    Variant

    The variant of the alert.

    VisibleChanged

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

    Declaration
    public EventCallback<bool> VisibleChanged { get; set; }
    Property Value
    Type Description
    EventCallback<System.Boolean>

    Methods

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected override string GetComponentCssClass()
    Returns
    Type Description
    System.String
    Overrides
    RadzenComponent.GetComponentCssClass()

    OnInitialized()

    Called by the Blazor runtime.

    Declaration
    protected override void OnInitialized()
    Overrides
    RadzenComponent.OnInitialized()

    SetParametersAsync(ParameterView)

    Called by the Blazor runtime when parameters are set.

    Declaration
    public override async Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters

    The parameters.

    Returns
    Type Description
    Task
    Overrides
    RadzenComponent.SetParametersAsync(ParameterView)

    Implements

    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT