mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
@inherits RadzenComponentWithChildren
|
|
@if (visible)
|
|
{
|
|
<div @ref="@Element" style="@Style" @attributes="Attributes" class="@GetCssClass()" id="@GetId()" aria-live="polite">
|
|
<div class="rz-alert-item">
|
|
@if (ShowIcon)
|
|
{
|
|
<RadzenIcon Icon="@GetIcon()" IconColor="@IconColor" class="rz-alert-icon" />
|
|
}
|
|
<div class="rz-alert-message">
|
|
@if (!string.IsNullOrEmpty(Title))
|
|
{
|
|
<div class="rz-alert-title">@Title</div>
|
|
}
|
|
<div class="rz-alert-content">
|
|
@if (ChildContent != null)
|
|
{
|
|
@ChildContent
|
|
}
|
|
else
|
|
{
|
|
@Text
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (AllowClose)
|
|
{
|
|
<RadzenButton Click=@OnClose Icon="close" Variant="Variant.Text" ButtonStyle="@GetCloseButtonStyle()" Shade="@GetCloseButtonShade()" Size="@GetCloseButtonSize()" />
|
|
}
|
|
</div>
|
|
} |