Encuesta de investigación: Cuéntanos sobre tu experiencia con Blockly
Comenzar encuesta
blockly > FieldDropdown > menuGenerator_
Signature:
protected menuGenerator_?: MenuGenerator;
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-09-12 (UTC)
[null,null,["Última actualización: 2024-09-12 (UTC)"],[[["`menuGenerator_` is a protected property of the `FieldDropdown` class that may or may not hold a value of type `MenuGenerator`."],["It is used by the `FieldDropdown` to dynamically generate a dropdown menu of options."],["The `MenuGenerator` type defines a function that returns an array of options, which can be strings or objects with a `text` and `value` property."]]],["The `menuGenerator_` property, found within the `FieldDropdown` class, is defined in the `blockly` library. It is a protected property, optionally of type `MenuGenerator`. This property is directly associated with how a dropdown menu is created and populated within the Blockly interface. Its type allows for custom menu generation logic.\n"]]