blockly > BlockSvg > removeInput
Rimuovi un input da questo blocco.
Firma:
removeInput(name: string, opt_quiet?: boolean): boolean;
Parametri
Parametro |
Tipo |
Descrizione |
nome |
stringa |
Il nome dell'input. |
opt_quiet |
booleano |
(Facoltativo) True per evitare errori se non è presente un input. |
Resi:
booleano
True se l'operazione riesce, false se l'input non è presente e opt_quiet è vero
Eccezioni
{Error} se l'input non è presente e opt_quiet non è true.
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-08-21 UTC.
[null,null,["Ultimo aggiornamento 2024-08-21 UTC."],[[["The `removeInput` method removes an input with a given name from a BlockSvg instance."],["The method returns `true` if successful or `false` if the input is not found and `opt_quiet` is set to `true`."],["An error is thrown if the input is not found and `opt_quiet` is not set to `true` or not provided (defaults to `false`)."]]],[]]