Skip to main content

Module notifications

Module notifications 

Source
Expand description

Toast notifications with optional automatic dismissal.

Keep a Toasts queue in host state, add messages as events occur and call NotificationPanel::show_with_toasts each frame to display them. Two or more toasts collapse into a stack showing the newest; a pill expands it and a button beside it dismisses every dismissible toast.

Each toast is announced by screen readers on Linux, Windows and macOS as a live region (polite, or assertive for errors); on the web nothing is announced, since eframe does not forward accessibility updates there.

Structs§

NotificationPanel
A panel for displaying toast notifications
NotificationPanelConfig
Configuration for the notification panel
Toast
A toast notification
Toasts
Toasts container for per-instance usage.
TradingToast
Structured details of an order notification, rendered as symbol and side chips.

Enums§

NotificationPosition
Position for the notification panel
ToastKind
Toast severity/type