Interface: ToastOptions
Presentation and persistence options for an addon notification.
Properties
id?
optionalid?:string
Stable identifier used to update or dismiss an existing notification.
action?
optionalaction?:"dismiss"
Set to dismiss to remove the notification identified by id.
message
message:
string
User-facing notification body.
header?
optionalheader?:string
Optional short notification title.
duration?
optionalduration?:number
Display duration in milliseconds. Use 0 for a non-expiring update.
color?
optionalcolor?:"primary"|"secondary"|"success"|"warning"|"danger"|"light"|"medium"|"dark"
Semantic color selected from the host design system.
position?
optionalposition?:"top"|"bottom"|"middle"
Preferred temporary-tooltip position.
showTooltip?
optionalshowTooltip?:boolean
Display the temporary tooltip. Defaults to true.
saveInCenter?
optionalsaveInCenter?:boolean
Keep the notification in the notification center. Defaults to false.