Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > input > Input > removeField
Rimuovi un campo da questo input.
Firma:
removeField(name: string, opt_quiet?: boolean): boolean;
Parametri
Parametro |
Tipo |
Descrizione |
nome |
stringa |
Il nome del campo. |
opt_quiet |
booleano |
(Facoltativo) True per evitare un errore se il campo non è presente. |
Resi:
booleano
True se l'operazione riesce, false se il campo non è presente e opt_quiet è true.
Eccezioni
{Error} se il campo non è presente e opt_quiet è falso.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-11 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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."]]],[]]