blockly > dialog > setConfirm

dialog.setConfirm() function

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

Signature:

export declare function setConfirm(confirmFunction: (p1: string, p2: (p1: boolean) => void) => void): void;

Parameters

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

Returns:

void