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 | Menu | The Menu component clicked. |
menuItem | MenuItem | The MenuItem selected within menu. |
Returns:
void