با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > رجیستری
فضای نام رجیستری
کلاس ها
کلاس | شرح |
---|
تایپ کنید | نامی با نوع عنصر ذخیره شده در عمومی. |
کارکرد
متغیرها
متغیر | شرح |
---|
پیش فرض | رشته ای که برای ثبت کلاس پیش فرض برای یک نوع افزونه استفاده می شود. |
TEST_ONLY | |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-07-24 بهوقت ساعت هماهنگ جهانی."],[[["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"]]