接口:Toast
目录
Toast(提示框)向用户提供简短通知。它们临时出现,不应中断用户体验。它们也无需用户输入即可消失。
自
0.2.0
方法
success
▸ success(msg
): void
显示一个类型为 success 的 Toast 消息。
ddClient.desktopUI.toast.success("message");
参数
名称 | 类型 | 描述 |
---|---|---|
msg | string | 要在 Toast 中显示的消息。 |
返回值
void
warning
▸ warning(msg
): void
显示一个类型为 warning 的 Toast 消息。
ddClient.desktopUI.toast.warning("message");
参数
名称 | 类型 | 描述 |
---|---|---|
msg | string | 要在 warning 中显示的消息。 |
返回值
void
error
▸ error(msg
): void
显示一个类型为 error 的 Toast 消息。
ddClient.desktopUI.toast.error("message");
参数
名称 | 类型 | 描述 |
---|---|---|
msg | string | 要在 Toast 中显示的消息。 |
返回值
void