Home > blockly > Toast > createDom
Toast.createDom() method
Creates the DOM representation of a toast.
Signature:
protected static createDom(workspace: WorkspaceSvg, options: ToastOptions): HTMLDivElement;
Parameters
| Parameter | Type | Description |
|---|---|---|
| workspace | WorkspaceSvg | The workspace to inject the toast notification onto. |
| options | ToastOptions | Configuration options for the toast. |
Returns:
HTMLDivElement
The root DOM element of the toast.