रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > IDeleteArea
IDeleteArea इंटरफ़ेस
एक ऐसे कॉम्पोनेंट के लिए इंटरफ़ेस जो इसके सबसे ऊपर छोड़े गए ब्लॉक या बबल को मिटा सकता है.
हस्ताक्षर:
export interface IDeleteArea extends IDragTarget
बड़ा किया जाता है: IDragTarget
तरीके
तरीका |
ब्यौरा |
wouldDelete(element) |
यह बताता है कि दिए गए ब्लॉक या बबल को इस जगह पर छोड़ने पर, उसे मिटाया जाएगा या नहीं. इस तरीके से यह जांच की जानी चाहिए कि एलिमेंट को मिटाया जा सकता है या नहीं. साथ ही, इसे हमेशा onDragEnter/onDragOver/onDragExit से पहले कॉल किया जाना चाहिए. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (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"]],["आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया."],[[["The IDeleteArea interface defines components that can delete blocks or bubbles dropped onto them."],["It extends the IDragTarget interface, inheriting drag-and-drop functionalities."],["The primary method, `wouldDelete`, checks if a given element would be deleted if dropped on the area, considering its deletability."]]],["The `IDeleteArea` interface defines a component that handles the deletion of blocks or bubbles dropped onto it. It extends the `IDragTarget` interface and includes one core method: `wouldDelete(element)`. This method determines if a dragged block or bubble would be deleted upon dropping within the area. It checks for deletability before any drag-related events.\n"]]