blockly‏ > dialog‏ > setConfirm

הפונקציה dialog.setConfirm()

הגדרת הפונקציה שתופעל כשמתבצעת קריאה ל-Blockly.dialog.confirm().

Signature:

export declare function setConfirm(confirmFunction?: (message: string, callback: (result: boolean) => void) => void): void;

פרמטרים

פרמטר סוג תיאור
confirmFunction (message: string, callback: (result: boolean) => void) => void (אופציונלי) הפונקציה שתופעל, או לא מוגדרת כדי לשחזר את ההטמעה שמוגדרת כברירת מחדל.

החזרים:

לא תקף