blockly > FieldDropdown > isOptionListDynamic
Methode FieldDropdown.isOptionListDynamic()
Unterschrift:
isOptionListDynamic(): boolean;
Gibt zurück:
boolean
"True", wenn die Optionsliste von einer Funktion generiert wird. Ansonsten ist die Variable "false".
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-09 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-09 (UTC)."],[[["The `Field.setEnabled()` method controls whether a field's value can be modified by the user when the block is editable."],["This method accepts a single boolean parameter, `enabled`, which is set to `true` to enable editing of the field and `false` to disable it."],["Calling `Field.setEnabled()` does not return any value."]]],["The `FieldDropdown.isOptionListDynamic()` method checks how a dropdown's options are generated. It returns a boolean value: `true` if the options are created dynamically by a function, and `false` if they are statically defined. The method's core function is to determine the nature of the option list's source, whether dynamic or static.\n"]]