IToast interface

Toast Props 与元数据一起指定服务将如何呈现它

属性

callToAction

号召性用语的可选文本

duration

Toast 将显示的持续时间(以毫秒为单位)

forceOverrideExisting

如果为 true,我们将立即删除任何现有 Toast 并显示此内容否则,它会将其添加到 GlobalToast 中的内部队列中,并将显示在队列中的其他队列之后

message

要在 Toast 上显示的消息

onCallToActionClick

单击号召性用语时的可选处理程序

属性详细信息

callToAction

号召性用语的可选文本

callToAction?: string

属性值

string

duration

Toast 将显示的持续时间(以毫秒为单位)

duration: number

属性值

number

forceOverrideExisting

如果为 true,我们将立即删除任何现有 Toast 并显示此内容否则,它会将其添加到 GlobalToast 中的内部队列中,并将显示在队列中的其他队列之后

forceOverrideExisting?: boolean

属性值

boolean

message

要在 Toast 上显示的消息

message: string

属性值

string

onCallToActionClick

单击号召性用语时的可选处理程序

onCallToActionClick?: () => void

属性值

() => void