Documentation / @zerotal/flow / index / FlashOptions
Interface: FlashOptions
Defined in: flow/src/Component.ts:179
Options accepted by this.flash(message, options) — the object form of the
fluent builder, for when config is computed dynamically. type is an alias
for level (Tailwind/Notyf parlance).
Properties
level?
optionallevel?:"error"|"success"|"warning"|"info"
Defined in: flow/src/Component.ts:180
type?
optionaltype?:"error"|"success"|"warning"|"info"
Defined in: flow/src/Component.ts:182
Alias for level.
title?
optionaltitle?:string
Defined in: flow/src/Component.ts:183
position?
optionalposition?:FlashPosition
Defined in: flow/src/Component.ts:184
duration?
optionalduration?:number
Defined in: flow/src/Component.ts:186
Auto-dismiss after N ms. 0 keeps the toast until dismissed.
dismissible?
optionaldismissible?:boolean
Defined in: flow/src/Component.ts:187
icon?
optionalicon?:string|false
Defined in: flow/src/Component.ts:189
Custom icon (emoji/text), or false to hide the status icon.
progressBar?
optionalprogressBar?:boolean
Defined in: flow/src/Component.ts:190
actions?
optionalactions?:FlashAction[]
Defined in: flow/src/Component.ts:192
Action buttons that each invoke a @expose method on click.
onClose?
optionalonClose?:FlashCallback
Defined in: flow/src/Component.ts:194
A @expose method invoked when the toast is dismissed.