接口:Toast

Toast 向用户提供简短的通知。它们会暂时出现,不应中断用户体验。它们也不需要用户输入即可消失。

0.2.0

方法

成功

success(msg): void

显示成功类型的 Toast 消息。

ddClient.desktopUI.toast.success("message");

参数

名称类型描述
msg字符串要在 Toast 中显示的消息。

返回

void


警告

warning(msg): void

显示警告类型的 Toast 消息。

ddClient.desktopUI.toast.warning("message");

参数

名称类型描述
msg字符串要在警告中显示的消息。

返回

void


错误

error(msg): void

显示错误类型的 Toast 消息。

ddClient.desktopUI.toast.error("message");

参数

名称类型描述
msg字符串要在 Toast 中显示的消息。

返回

void

© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.