blockly > dialog > setAlert

dialog.setAlert() function

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

Signature:

export declare function setAlert(alertFunction: (p1: string, p2?: () => void) => void): void;

Parameters

Parameter Type Description
alertFunction (p1: string, p2?: () => void) => void The function to be run.

Returns:

void