Class RadzenAlert
RadzenAlert component.
Implements
Inherited Members
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 |
|
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 |
|
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
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
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 |