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

Parameter Type Description
workspace WorkspaceSvg The workspace to dismiss a toast in.
id string (Optional) The toast ID, or undefined to clear any toast.

Returns:

void