KToast
kds-plugin-document / Exports / KToast
Interface: KToast
酷大师信息提示
The KToast class is the handle to show toasts in the UI.
Table of contents
Methods
Methods
clear
▸ clear(): void
清空所有信息提示
Clear all the toasts.
Returns
void
Defined in
api.d.ts:4389
error
▸ error(option): void
展示一个错误信息提示
Show an error.
Parameters
| Name | Type | Description |
|---|---|---|
option | KToastOption | The toast option. |
Returns
void
Defined in
api.d.ts:4370
info
▸ info(option): void
展示一个普通信息提示
Show an info.
Parameters
| Name | Type | Description |
|---|---|---|
option | KToastOption | The toast option. |
Returns
void
Defined in
api.d.ts:4350
loading
▸ loading(option): void
展示一个加载信息提示
Show an loading.
Parameters
| Name | Type | Description |
|---|---|---|
option | KToastOption | The toast option. |
Returns
void
Defined in
api.d.ts:4380
success
▸ success(option): void
展示一个成功信息提示
Show a success.
Parameters
| Name | Type | Description |
|---|---|---|
option | KToastOption | The toast option. |
Returns
void
Defined in
api.d.ts:4340
warn
▸ warn(option): void
展示一个警告信息提示
Show a warn.
Parameters
| Name | Type | Description |
|---|---|---|
option | KToastOption | The toast option. |
Returns
void
Defined in
api.d.ts:4360