Dashboard (original) (raw)

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.

success

success(msg): void

Use to display a toast message of type success.

warning

warning(msg): void

Use to display a toast message of type warning.

error

error(msg): void

Use to display a toast message of type error.

For more details about method parameters and the return types available, seeToast API reference.

Deprecated user notifications

These methods are deprecated and will be removed in a future version. Use the methods specified above.

This function opens a file selector dialog that asks the user to select a file or folder.

showOpenDialog(dialogProperties): Promise<OpenDialogResult>:

The dialogProperties parameter is a list of flags passed to Electron to customize the dialog's behaviour. For example, you can pass multiSelections to allow a user to select multiple files. SeeElectron's documentation for a full list.

This function opens an external URL with the system default browser.

openExternal(url): void

The URL must have the protocol http or https.

For more details about method parameters and the return types available, seeDesktop host API reference.

Deprecated user notifications

This method is deprecated and will be removed in a future version. Use the methods specified above.

From your extension, you can alsonavigate to other parts of the Docker Desktop Dashboard.