با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > ContextMenuRegistry > getItem
امضا:
getItem(id: string): RegistryItem | null;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
شناسه | رشته | شناسه RegistryItem برای دریافت. |
برمی گرداند:
RegistryItem | تهی
RegistryItem یا در صورت یافت نشدن null
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز 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 `ContextMenuRegistry.getItem()` method retrieves a specific context menu item by its unique ID."],["If an item with the provided ID exists within the registry, the method returns the corresponding `RegistryItem`; otherwise, it returns `null`."],["This method is useful for accessing and potentially modifying or removing specific context menu items based on their ID."]]],["The `getItem()` method, part of the `ContextMenuRegistry`, retrieves a `RegistryItem` by its unique ID. It accepts a string `id` as a parameter, representing the target item's identifier. The method then returns the corresponding `RegistryItem` if found, or `null` if no item matches the provided ID.\n"]]