रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
blockly > ब्लॉक करें > removeInput
इस ब्लॉक से कोई इनपुट हटाएं.
हस्ताक्षर:
removeInput(name: string, opt_quiet?: boolean): boolean;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
नाम |
स्ट्रिंग |
इनपुट का नाम. |
opt_quiet |
बूलियन |
(ज़रूरी नहीं) इनपुट न होने पर गड़बड़ी से बचने के लिए, सही का निशान लगाएं. |
लौटाए जाने वाले प्रॉडक्ट:
बूलियन
अगर कार्रवाई पूरी हो जाती है, तो True. अगर इनपुट मौजूद नहीं है और opt_quiet सही है, तो False.
अपवाद
अगर इनपुट मौजूद नहीं है और opt_quiet सही नहीं है, तो {Error} दिखेगा.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया."],[[["The `removeInput()` method is used to delete an input from a Blockly block using the input's name."],["The method optionally takes a boolean, `opt_quiet`, to suppress errors if the specified input is not found."],["`removeInput()` returns `true` if the removal is successful, and `false` if `opt_quiet` is true and the input doesn't exist."],["An error is thrown if the input is not found and `opt_quiet` is not set to `true`."]]],["The `Block.removeInput()` method removes an input from a block using the input's name. It accepts two parameters: `name` (a string specifying the input's name) and an optional `opt_quiet` (a boolean). If `opt_quiet` is true, the method returns false if the input is absent. If `opt_quiet` is false (or omitted) and the input is not found, it throws an error. The method returns `true` if the input is successfully removed.\n"]]