Toast Notifications
Summary
- Toast Notifications are a configurable way to display messages
- They can include Forms if required
- Toast Notifications are configured via
notificationsOptionson Adaptable Options - Used for Alerts and System Status Messages
Topics on this Page
| Topic | Summary |
|---|---|
| Demo & behaviour | Sandpack — alerts and system status |
| Notifications options | notificationsOptions on Adaptable Options |
| Technical reference | Notifications Technical Reference |
Find Out More
Toast Notifications are rich, highly configurable popup messages.
They are designed to inform users of important messages or updates.
Toast Notifications are available - as options - in 2 modules in AdapTable:
Note
- Alert Notifications can be configured to show an Alert Form (i.e. buttons and other Form fields)
- System Status toasts are typically message text plus a default OK button unless you customise the underlying alert
- This example demonstrates some of the Notification functionality available in AdapTable, including:
- System Status Messages — four toolbar buttons call
systemStatusApi(toolbar, tool panel, and — becauseshowSystemStatusMessageNotificationsis true — a toast) - Scheduled Alert — Schedule alert (15s) adds a one-off Scheduled Alert that fires 15 seconds later with both a toast and a System Status entry
- Toast Notifications — positioned top-centre with a bounce transition and 8 second duration (
notificationsOptionson this demo)
- System Status Messages — four toolbar buttons call
- Click the status-type buttons in Setting Message Buttons to change System Status (and see the toast)
- Click Schedule alert (15s) and wait for the scheduled toast and System Status update
Configuring Notifications
By default a Toast Notification will:
- appear with a sliding action
- be positioned in the BottomRight of the screen
- remain on the screen for 3 seconds
- display without a progress bar
- not be draggable
- not close when it is clicked
However all these settings are configurable in Notifications Options.
Caution
- These Options are global in AdapTable
- Changes affect all Toast Notifications (i.e. in both Alerts and System Status Messages)
- This demo sends System Status messages in the same way as the demo above.
- However we have overridden some of the default Toast Notification properties as follows:
position: 'TopCenter'duration: 5000transition: 'Bounce'showProgressBar: truecloseWhenClicked: truepauseWhenHovering: true
Notifications Options
Toast Notifications are configured in NotificationsOptions on Adaptable Options (notificationsOptions).
closeWhenClicked
Default: falseBooleanduration
Default: 3000Number | 'always'isDraggable
Default: falseBooleanmaxNotifications
Default: 3NumberpauseWhenHovering
Default: falseBooleanshowApplicationIcon
Default: falseBooleanshowProgressBar
Default: falseBooleantransition
Default: Slide'Bounce' | 'Slide' | 'Zoom' | 'Flip'Find Out More
The full property list is in the Notifications Technical Reference
FAQ
Alerts vs System Status vs toasts? Alerts can show a toast when rules fire (optional form buttons). System Status updates the status bar and can mirror the same message as a toast when enabled — see the demo toolbar buttons.
Where do I configure defaults?
adaptableOptions.notificationsOptions. Per-alert overrides use presentation properties on the alert definition — see Alerting.
AdapTable Resources
- UI Guides
- Notifications Technical Reference
- Adaptable Forms — alert notification forms
- Adaptable Icon —
showApplicationIconon toasts