介面: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