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 |
Description |
Type | Default |
Location |
Specifies where notifications are displayed.
|
NotificationLocation | Center |
DefaultInterval |
Specifies the default time in milliseconds before a notification closes automatically.
|
double? | |
Events
| Event |
Description |
Type |
Okayed |
Occurs after the user responds with the OK action.
|
EventCallback |
Closed |
Occurs after the notification closes.
|
EventCallback |
INotificationService
Events
| Event |
Description |
Type |
NotificationReceived |
Raised when a notification request is received by the provider.
|
EventHandler<NotificationEventArgs> |
Methods
| Method |
Description | Return | Parameters |
Info |
Shows an informational notification. String and MarkupString overloads are available.
| Task | message, title = null, options = null |
Success |
Shows a success notification. String and MarkupString overloads are available.
| Task | message, title = null, options = null |
Warning |
Shows a warning notification. String and MarkupString overloads are available.
| Task | message, title = null, options = null |
Error |
Shows an error notification. String and MarkupString overloads are available.
| Task | message, title = null, options = null |