Blazorise Notification Service API
Review the provider component and service methods used to display application notifications.
For setup instructions and examples, see the Notification Service documentation.
API
NotificationProvider
Parameters
| Parameter | Default | Type |
|---|---|---|
Location | Center | NotificationLocation |
Specifies where notifications are displayed.
| ||
DefaultInterval | — | double? |
Specifies the default time in milliseconds before a notification closes automatically.
| ||
Events
| Event | Type |
|---|---|
Okayed | EventCallback |
Occurs after the user responds with the OK action.
| |
Closed | EventCallback |
Occurs after the notification closes.
| |
INotificationService
Events
| Event | Type |
|---|---|
NotificationReceived | EventHandler<NotificationEventArgs> |
Raised when a notification request is received by the provider.
| |
Methods
| Method | Return | Parameters |
|---|---|---|
Info | Task | message, title = null, options = null |
Shows an informational notification. String and MarkupString overloads are available.
| ||
Success | Task | message, title = null, options = null |
Shows a success notification. String and MarkupString overloads are available.
| ||
Warning | Task | message, title = null, options = null |
Shows a warning notification. String and MarkupString overloads are available.
| ||
Error | Task | message, title = null, options = null |
Shows an error notification. String and MarkupString overloads are available.
| ||