קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > FieldDropdown > onItemSelected_
שיטת FieldDropdown.onItemSelected_()
מטפלים בבחירת הפריט בתפריט הנפתח.
Signature:
protected onItemSelected_(menu: Menu, menuItem: MenuItem): void;
פרמטרים
| פרמטר |
סוג |
תיאור |
| תפריט |
תפריט |
בוצעה לחיצה על רכיב התפריט. |
| menuItem |
MenuItem |
הפריט בתפריט שנבחר. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["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"]]