Interface: Toast

Interface: Toast

Docker Desktop 확장 SDK의 Toast 인터페이스예요. Docker Desktop UI에 토스트 알림(성공·오류 등)을 표시하는 데 써요.

출처: 문서

본문

Interface: Toast

Toasts provide a brief notification to the user. They appear temporarily and shouldn't interrupt the user experience. They also don't require user input to disappear.

Since

0.2.0

메서드

success

success(msg): void

Display a toast message of type success.

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

파라미터

Name | Type | Description msg | string | The message to display in the toast.

반환값

void

warning

warning(msg): void

Display a toast message of type warning.

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

파라미터

Name | Type | Description msg | string | The message to display in the warning.

반환값

void

error

error(msg): void

Display a toast message of type error.

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

파라미터

Name | Type | Description msg | string | The message to display in the toast.

반환값

void

더 알아보기