Skip to main content

bn.showToast

showToast(options?): Promise<void>

description The api to show toast

remark supported jssdk >= 1.1.0

example

bn.showToast({
title: 'Success!',
icon: 'success',
duration: 2000
})

Parameters

NameType
options?Partial<CmdToastOptions>

Returns

Promise<void>


CmdToastOptions

Ƭ CmdToastOptions: Object

Type declaration

NameTypeDescription
titlestringPrompt content
icon?"success" | "loading" | "none" | "error"icon
duration?numberPrompt delay time