تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > IToolboxItem
واجهة عنصر في صندوق الأدوات
Signature:
export interface IToolboxItem extends IFocusableNode
يمتد إلى: IFocusableNode
الطُرق
الطريقة |
الوصف |
dispose() |
تخلص من عنصر مجموعة الأدوات هذا. لا يتم إجراء أي إجراء تلقائيًا. |
getClickTarget() |
تحصل على عنصر HTML القابل للنقر. |
getDiv() |
تحصل على div لعنصر مربع الأدوات. |
getId() |
تحصل على معرّف فريد لعنصر صندوق الأدوات هذا. |
getParent() |
تحصل على العنصر الرئيسي إذا كان عنصر صندوق الأدوات مُدمجًا. |
init() |
تبدأ عملية إعداد عنصر صندوق الأدوات. ويشمل ذلك إنشاء نموذج DOM وتعديل حالة أي عناصر استنادًا إلى عنصر المعلومات. |
isCollapsible() |
ما إذا كان عنصر صندوق الأدوات قابلاً للطي |
isSelectable() |
يشير إلى ما إذا كان عنصر صندوق الأدوات قابلاً للاختيار. |
setVisible_(isVisible) |
لتحديد ما إذا كانت الفئة مرئية أم لا لكي تكون الفئة مرئية، يجب أيضًا توسيع فئتها الرئيسية. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-05-16 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-05-16 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `IToolboxItem` interface defines the structure and behavior of items within the Blockly toolbox."],["It provides methods for managing an item's lifecycle, including initialization, disposal, and interaction."],["Toolbox items can be clickable, have a visual representation (div), and may be nested within other items."],["Properties like visibility, selectability, and collapsibility are also managed through this interface."],["Each toolbox item has a unique identifier for easy reference and manipulation."]]],["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"]]