Skip to main content

Home > 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

ParameterTypeDescription
menuMenuThe Menu component clicked.
menuItemMenuItemThe MenuItem selected within menu.

Returns:

void