blockly > FieldVariable > menuGenerator_
Signature:
protected menuGenerator_: MenuGenerator | undefined;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`menuGenerator_` is a protected property of the `FieldVariable` class that can optionally store a function to generate a menu of variable options."],["This function, if defined, will be used to populate the dropdown menu when the user interacts with the field variable."],["The type of `menuGenerator_` is `MenuGenerator`, which is either a function that takes a Blockly workspace as input and returns an array of menu options, or it can be `undefined`."]]],["The `FieldVariable.menuGenerator_` property, found within the Blockly library, is defined. It's a protected property, meaning it is intended for internal use within the library. Its type is either `MenuGenerator` or `undefined`. This property is responsible for generating a menu, though specifics regarding menu content or usage are not described in the provided information.\n"]]