blockly > dane wejściowe > Dane wejściowe > removeField
Usuń pole z tych danych wejściowych.
Podpis:
removeField(name: string, opt_quiet?: boolean): boolean;
Parametry
Parametr |
Typ |
Opis |
nazwa |
ciąg znaków |
Nazwa pola. |
opt_quiet |
wartość logiczna |
(Opcjonalnie) Prawda, aby zapobiec błędzie w przypadku braku pola. |
Zwroty:
wartość logiczna
Wartość true, jeśli operacja się powiedzie, false, jeśli pole nie jest dostępne, a parametr opt_quiet ma wartość true (prawda).
Wyjątki
{Error}, jeśli pole nie istnieje, a opt_quiet ma wartość false.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-11 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],[]]