Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > ContextMenuRegistry > getItem
Podpis:
getItem(id: string): RegistryItem | null;
Parametry
Parametr |
Typ |
Opis |
id |
ciąg znaków |
Identyfikator elementu RegistryItem do pobrania. |
Zwroty:
Element rejestru | wartość null
Jeśli nie znaleziono elementu rejestru, lub wartość null
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["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"]]