блочно > FieldDropdown > onItemSelected_
Метод FieldDropdown.onItemSelected_()
Обработка выбора элемента в раскрывающемся меню.
Подпись:
protected onItemSelected_(menu: Menu, menuItem: MenuItem): void;
Параметры
Параметр | Тип | Описание |
---|
меню | Меню | Компонент меню щелкнул. |
пункт меню | МенюЭлемент | MenuItem, выбранный в меню. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-05 UTC.
[null,null,["Последнее обновление: 2025-01-05 UTC."],[[["The `onItemSelected_` method is called when a user selects an item from a FieldDropdown's menu."],["It receives the `Menu` and selected `MenuItem` as input, allowing developers to react to the user's choice."],["This method is intended for internal use and doesn't return any value."]]],["The `onItemSelected_` method within the `FieldDropdown` class handles dropdown menu item selection. It receives two parameters: `menu`, representing the clicked `Menu` component, and `menuItem`, representing the selected `MenuItem` within that menu. This method processes the specific `MenuItem` choice and performs actions based on the selection within a `FieldDropdown`, it does not return a value.\n"]]