Skip to main content

Home > blockly > Toast > createDom

Toast.createDom() method

Creates the DOM representation of a toast.

Signature:

protected static createDom(workspace: WorkspaceSvg, options: ToastOptions): HTMLDivElement;

Parameters

ParameterTypeDescription
workspaceWorkspaceSvgThe workspace to inject the toast notification onto.
optionsToastOptionsConfiguration options for the toast.

Returns:

HTMLDivElement

The root DOM element of the toast.