blockly > Eingaben > Eingabe > removeField
Entfernt ein Feld aus dieser Eingabe.
Unterschrift:
removeField(name: string, opt_quiet?: boolean): boolean;
Parameter
Parameter |
Typ |
Beschreibung |
Name |
String |
Der Name des Felds. |
opt_quiet |
boolean |
(Optional) "True", um einen Fehler zu vermeiden, wenn das Feld nicht vorhanden ist. |
Gibt zurück:
boolean
"True", wenn der Vorgang erfolgreich ist, "false", wenn das Feld nicht vorhanden ist und opt_quiet auf "true" gesetzt ist.
Ausnahmen
{Error}, wenn das Feld nicht vorhanden und opt_quiet auf „false“ gesetzt ist
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-11 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-09-11 (UTC)."],[[["The `removeField` method removes a field, specified by its name, from a Blockly input."],["If `opt_quiet` is true, the method will not throw an error if the field is not found, but it will return `false`."],["If `opt_quiet` is false (or omitted) and the specified field is not found, the method will throw an error."],["This method is part of the `Blockly.inputs.Input` class, used for managing input fields within Blockly blocks."]]],[]]