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 |
|
Icon
Gets or sets the icon.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
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. |
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. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |