blockly > dialog > setAlert

dialog.setAlert() 函式

設定在呼叫 Blockly.dialog.alert() 時要執行的函式。

Signature:

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

參數

參數 類型 說明
alertFunction (message: string, callback?: () => void) => void (選用) 要執行的函式,或未定義的函式,以便還原預設實作。

退貨:

void