блочно > FieldDropdown > MenuGenerator_
Подпись:
protected menuGenerator_?: MenuGenerator;
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-14 UTC.
[null,null,["Последнее обновление: 2024-11-14 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"]]