Skip to main content

Home > blockly > FieldDropdown > setOptions

FieldDropdown.setOptions() method

Update the options on this dropdown. This will reset the selected item to the first item in the list.

Signature:

setOptions(menuGenerator: MenuGenerator): void;

Parameters

ParameterTypeDescription
menuGeneratorMenuGeneratorThe array of options or a generator function.

Returns:

void