Notification
This article demonstrates how to use the Notification component. Check also the component guide and API reference.
- Register
<RadzenNotification />
in your application main layout. - Register
NotificationService
in your application Startup or Program. - Inject
NotificationService
in your page. - Execute
Notify()
method of the notification service with newNotificationMessage
with desired properties.
Blazor declaration
@inject NotificationService notificationService
...
<RadzenButton Text="Show success notification"
Click="@(args => ShowNotification(new NotificationMessage() { Severity = NotificationSeverity.Success, Summary = "Success Summary", Detail = "Success Detail", Duration = 4000 }))" />