Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
617 B

@foreach (var alert in Alerts)
{
<Alert Visible="@alert.IsVisible" Dismisable="@alert.AlertMessage.Dismissible" Color="@GetAlertColor(alert.AlertMessage.Type)">
@if (!string.IsNullOrEmpty(alert.AlertMessage.Title))
{
<Heading Size="HeadingSize.Is4" Class="alert-heading">
@alert.AlertMessage.Title
@if (alert.AlertMessage.Dismissible)
{
<CloseButton Clicked="() => alert.IsVisible = false" />
}
</Heading>
}
<Paragraph>@alert.AlertMessage.Text</Paragraph>
</Alert>
}