blockly > FieldDropdown > onItemSelected_
FieldDropdown.onItemSelected_() method
Handle the selection of an item in the dropdown menu.
Signature:
protected onItemSelected_(menu: Menu, menuItem: MenuItem): void;
Parameters
Parameter | Type | Description |
|---|---|---|
menu | The Menu component clicked. | |
menuItem | The MenuItem selected within menu. |
Returns:
void