blockly > dialog > setAlert

dialog.setAlert() function

Sets the function to be run when Blockly.dialog.alert() is called.

Signature:

export declare function setAlert(alertFunction?: (message: string, callback?: () => void) => void): void;

Parameters

Parameter Type Description
alertFunction (message: string, callback?: () => void) => void (Optional) The function to be run, or undefined to restore the default implementation.

Returns:

void