blockly > FieldDropdown > getOptions
FieldDropdown.getOptions() method
Return a list of the options for this dropdown.
Signature:
getOptions(useCache?: boolean): MenuOption[];
Parameters
Parameter | Type | Description |
---|---|---|
useCache | boolean | (Optional) For dynamic options, whether or not to use the cached options or to re-generate them. |
Returns:
A non-empty array of option tuples: (human-readable text or image, language-neutral name).
Exceptions
{TypeError} If generated options are incorrectly structured.