संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > IToolboxItem
टूलबॉक्स में मौजूद किसी आइटम का इंटरफ़ेस.
हस्ताक्षर:
export interface IToolboxItem extends IFocusableNode
इससे मिलता-जुलता है: IFocusableNode
तरीके
तरीका |
ब्यौरा |
dispose() |
टूलबॉक्स के इस आइटम को फेंक दें. डिफ़ॉल्ट रूप से कोई कार्रवाई नहीं की जाती. |
getClickTarget() |
क्लिक किए जा सकने वाले एचटीएमएल एलिमेंट को दिखाता है. |
getDiv() |
टूलबॉक्स आइटम के लिए div पाता है. |
getId() |
इस टूलबॉक्स आइटम के लिए यूनीक आइडेंटिफ़ायर पाता है. |
getParent() |
अगर टूलबॉक्स आइटम नेस्ट किया गया है, तो पैरंट आइटम दिखाता है. |
init() |
टूलबॉक्स आइटम को शुरू करता है. इसमें डीओएम बनाना और जानकारी वाले ऑब्जेक्ट के आधार पर किसी भी आइटम की स्थिति अपडेट करना शामिल है. |
isCollapsible() |
टूलबॉक्स आइटम को छोटा किया जा सकता है या नहीं. |
isSelectable() |
टूलबॉक्स आइटम को चुना जा सकता है या नहीं. |
setVisible_(isVisible) |
इससे यह सेट होता है कि कैटगरी दिखेगी या नहीं. किसी कैटगरी को दिखाने के लिए, उसकी पैरंट कैटगरी को भी बड़ा करना होगा. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `IToolboxItem` interface defines the structure for items within a toolbox. Key methods include `dispose()` for cleanup, `getClickTarget()` and `getDiv()` to access the item's HTML, and `getId()` to retrieve its unique identifier. `getParent()` identifies nested items. `init()` initializes the item, `isCollapsible()` and `isSelectable()` determine item behavior. Finally, `setVisible_()` controls the visibility of the item. Each of the methods has a corresponding description.\n"],null,[]]