Home > blockly > FieldDropdown > validateOptions
FieldDropdown.validateOptions() method
Validates the data structure to be processed as an options list.
Signature:
protected validateOptions(options: MenuOption[]): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| options | MenuOption[] | The proposed dropdown options. |
Returns:
void
Exceptions
{TypeError} If proposed options are incorrectly structured.