रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > registry
रजिस्ट्री नेमस्पेस
क्लास
फ़ंक्शन
फ़ंक्शन |
ब्यौरा |
getAllItems(type, opt_cased, opt_throwIfMissing) |
दिए गए प्रकार के साथ रजिस्टर किए गए आइटम का मैप लौटाता है. |
getClass(type, name, opt_throwIfMissing) |
दिए गए नाम और टाइप के लिए क्लास की जानकारी देता है. |
getClassFromOptions(type, options, opt_throwIfMissing) |
दिए गए टाइप के लिए, Blockly के विकल्पों से क्लास की जानकारी देता है. इसका इस्तेमाल ऐसे प्लगिन के लिए किया जाता है जो किसी बिल्ट-इन सुविधा को ओवरराइड करते हैं. (उदाहरण के लिए, टूलबॉक्स) |
getObject(type, name, opt_throwIfMissing) |
दिए गए नाम और टाइप के लिए ऑब्जेक्ट की जानकारी मिलती है. |
hasItem(type, name) |
यह बताता है कि रजिस्ट्री में, दिए गए टाइप और नाम वाला आइटम शामिल है या नहीं. |
रजिस्टर करें(type, name, RegistryItem, opt_allowOverrides) |
टाइप और नाम के आधार पर क्लास को रजिस्टर करता है. |
रजिस्ट्रेशन रद्द करें(टाइप, नाम) |
दिए गए टाइप और नाम के साथ रजिस्ट्री आइटम का रजिस्ट्रेशन रद्द करता है. |
वैरिएबल
वैरिएबल |
ब्यौरा |
डिफ़ॉल्ट |
किसी तरह के प्लगिन के लिए डिफ़ॉल्ट क्लास को रजिस्टर करने के लिए इस्तेमाल की जाने वाली स्ट्रिंग. |
TEST_ONLY |
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2023-12-01 (UTC) को अपडेट किया गया."],[[["The `Blockly.registry` namespace manages the registration and retrieval of various Blockly components, like plugins and extensions."],["It provides functions to register, unregister, and access items using their type and name."],["You can retrieve registered items as classes or objects, and check for their existence using provided functions."],["The `Blockly.registry` namespace uses types like `Type` to categorize registered components for easy management."]]],["The registry namespace manages items in Blockly using types and names. It includes a `Type` class representing an element's type. Key actions involve retrieving registered items via `getAllItems`, `getClass`, `getClassFromOptions`, and `getObject`. The functions `hasItem`, `register`, and `unregister` are used to check, add, and remove items, respectively. `DEFAULT` and `TEST_ONLY` are used for specifying default classes and for testing purposes.\n"]]