Files
radzen-blazor/RadzenBlazorDemos/Pages/NotificationPosition.razor
2025-04-16 11:31:03 +03:00

14 lines
545 B
Plaintext

@inject NotificationService NotificationService
<div class="rz-p-12 rz-text-align-center">
<RadzenButton Text="Show notification at custom position"
Click=@(args => ShowNotification(new NotificationMessage { Style = "position: absolute; inset-inline-start: -1000px;", Severity = NotificationSeverity.Success, Summary = "Success Summary", Detail = "Success Detail", Duration = 4000 })) />
</div>
@code {
void ShowNotification(NotificationMessage message)
{
NotificationService.Notify(message);
}
}