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
Name | Type |
---|---|
options? | Partial <CmdToastOptions > |
Returns
Promise
<void
>
CmdToastOptions
Ƭ CmdToastOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
title | string | Prompt content |
icon? | "success" | "loading" | "none" | "error" | icon |
duration? | number | Prompt delay time |