blockly > dialog > confirm

dialog.confirm() function

Wrapper to window.confirm() that app developers may override via setConfirm to provide alternatives to the modal browser window.

Signature:

export declare function confirm(message: string, callback: (p1: boolean) => void): void;

Parameters

Parameter Type Description
message string The message to display to the user.
callback (p1: boolean) => void The callback for handling user response.

Returns:

void