Skip to main content

Module notification

Module notification 

Source
Expand description

Transient user-visible message produced by an Action’s result and rendered in the Panel shell; stored as a JSON flash cookie with hardened attributes that Topcoat flushes on error responses too (topcoat#408).

Structs§

LiveToast
Owns the signals that mount a Notification in place without navigation.
LiveToasterProps
Reads the page’s LiveToast signals and mounts the toast in place when one is set.
LiveToasterPropsBuilder
Typestate builder for LiveToasterProps, created by LiveToasterProps::builder(). build() becomes available once every required property has been set.
Notification
A transient message shown after a mutation.
live_toaster
Reads the page’s LiveToast signals and mounts the toast in place when one is set.

Enums§

NotificationStatus
The kind of notification (status).

Functions§

live_toast
The live toast signals for this request (call once per page).
render_notification
Renders one notification as the toast, with attrs merged onto its surface.
set_notification
Store a notification for the next request (flash).
take_notification
Take the notification from the request (if present) and clear it.