Skip to main content

Home > blockly > Toast > hide

Toast.hide() method

Dismiss a toast, e.g. in response to a user action.

Signature:

static hide(workspace: WorkspaceSvg, id?: string): void;

Parameters

ParameterTypeDescription
workspaceWorkspaceSvgThe workspace to dismiss a toast in.
idstring(Optional) The toast ID, or undefined to clear any toast.

Returns:

void