Home > blockly > dialog > setToast
dialog.setToast() function
Sets the function to be run when Blockly.dialog.toast() is called.
Signature:
export declare function setToast(toastFunction?: (workspace: WorkspaceSvg, options: ToastOptions) => void): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| toastFunction | (workspace: WorkspaceSvg, options: ToastOptions) => void | (Optional) The function to be run, or undefined to restore the default implementation. |
Returns:
void