mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
14 lines
545 B
Plaintext
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);
|
|
}
|
|
}
|