blockly > MenuGeneratorFunction

A function that generates an array of menu options for FieldDropdown or its descendants.

Signature:

export type MenuGeneratorFunction = (this: FieldDropdown) => MenuOption[];

References: FieldDropdown, MenuOption