blazor-lumen-boilerplate

Toaster Notifications

For technical information read the toaster notifications reference document.

Blazor

Success

await JSRuntime.InvokeVoidAsync("Alert", "success", "Notification Title", "Notification message.");

Error

await JSRuntime.InvokeVoidAsync("Alert", "error", "Notification Title", "Notification message.");

Warning

await JSRuntime.InvokeVoidAsync("Alert", "warning", "Notification Title", "Notification message.");

General

await JSRuntime.InvokeVoidAsync("Alert", "notice", "Notification Title", "Notification message.");

JavaScript

Success

Alert("success", "Notification Title", "Notificaiton message.");

Error

Alert("error", "Notification Title", "Notificaiton message.");

Warning

Alert("warning", "Notification Title", "Notificaiton message.");

General

Alert("notice", "Notification Title", "Notificaiton message.");