Home > blockly > dialog > setConfirm
dialog.setConfirm() function
Sets the function to be run when Blockly.dialog.confirm() is called.
Signature:
export declare function setConfirm(confirmFunction?: (message: string, callback: (result: boolean) => void) => void): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| confirmFunction | (message: string, callback: (result: boolean) => void) => void | (Optional) The function to be run, or undefined to restore the default implementation. |
Returns:
void