界面:吐司
Toast 向用户提供简短的通知。它们是暂时出现的,不应中断用户体验。它们也不需要用户输入即可消失。
Since
0.2.0
方法
成功
▸成功( msg
):void
显示类型为 success 的 toast 消息。
ddClient.desktopUI.toast.success("message");
参数
姓名 | 类型 | 描述 |
---|---|---|
msg | string | 要在 toast 中显示的消息。 |
退货
void
警告
▸警告( msg
):void
显示警告类型的 Toast 消息。
ddClient.desktopUI.toast.warning("message");
参数
姓名 | 类型 | 描述 |
---|---|---|
msg | string | 要在警告中显示的消息。 |
退货
void
错误
▸错误( msg
):void
显示错误类型的 toast 消息。
ddClient.desktopUI.toast.error("message");
参数
姓名 | 类型 | 描述 |
---|---|---|
msg | string | 要在 toast 中显示的消息。 |
退货
void