tui.notify
tui.notify MESSAGE [LEVEL] [SECONDS]
Shows a toast notification that disappears on its own.
Parameters
LEVEL:info(default),success,warn(orwarning),error. Anything else counts asinfo.SECONDS: lifetime. Default:tui.notify.seconds(5).0= until cleared.
Sets: TUI_NOTIFY_ID to the new toast’s id.
Notes
- Up to 5 toasts stack; the oldest is dropped. Toasts survive page changes.
- Position:
tui.notify.position. - Styled with
.toast,.toast_success,.toast_warn,.toast_errorwhen the theme defines them.
Example
tui.notify "Report saved" success
tui.notify "Upload failed" error 0; err_toast=$TUI_NOTIFY_ID
