रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > डायलॉग > setPrompt
डायलॉग.setPrompt() फ़ंक्शन
Blockly.dialog.prompt() को कॉल करने पर, फ़ंक्शन को सेट करता है.
हस्ताक्षर:
export declare function setPrompt(promptFunction: (p1: string, p2: string, p3: (p1: string | null) => void) => void): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
promptFunction |
(p1: स्ट्रिंग, p2: स्ट्रिंग, p3: (p1: स्ट्रिंग | शून्य) => शून्य) => अमान्य |
चलाया जाने वाला फ़ंक्शन. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["Blockly's `dialog.setPrompt()` function assigns a custom function to be executed when the `Blockly.dialog.prompt()` is called, enabling developers to define the behavior of prompt dialogs."],["The assigned `promptFunction` receives three arguments: a title string, a message string, and a callback function to handle the user's input."]]],["The `dialog.setPrompt()` function sets a custom function to be executed when `Blockly.dialog.prompt()` is invoked. This function accepts a `promptFunction` as a parameter, which itself takes three arguments: two strings (`p1`, `p2`) and a callback function (`p3`). The callback function takes a string or null as input. The `setPrompt` function does not return any value. Its key action is to assign the passed custom function.\n"]]