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
| Parameter | Type | Description |
|---|---|---|
| menuGenerator | MenuGenerator | The array of options or a generator function. |
Returns:
void