Notifications

You can send notifications around your app using the NotificationHelper. This page shows a very simple (and slightly pointess) example. Click the buttons below to see it in action.

Error notifications will remain in view until the user clicks on them to dismiss them. Success notifications will be removed after 5 seconds, and other types wil be removed after 15 seconds.

You can add custom behaviour for when the user clicks on the notification. The button below shows a notification that when clicked, will show the current time and date below the button...

As mentioned above, this page is pointlessly simple. If you only want to show a notification in the current component, you wouldn't need this helper. The main use comes if you add the NotificationArea component elsewhere (say in your main layout component), then any component that injects a NotificationHelper can send a message, and it will be shown.

An error has occurred. This application may no longer respond until reloaded. Reload 🗙