blockly > dialog > setConfirm
dialog.setConfirm() 函式
設定在呼叫 Blockly.dialog.confirm() 時執行函式。
Signature:
export declare function setConfirm(confirmFunction: (p1: string, p2: (p1: boolean) => void) => void): void;
參數
參數 | 類型 | 說明 |
---|---|---|
confirmFunction | (p1: string, p2: (p1: boolean) => void) => void | 要執行的函式。 |
傳回:
void