blockly > input > Input > setCheck
Modificare la compatibilità di una connessione.
Firma:
setCheck(check: string | string[] | null): Input;
Parametri
Parametro |
Tipo |
Descrizione |
check |
stringa | stringa[] | null |
Tipo di valore compatibile o elenco di tipi di valori. Null se tutti i tipi sono compatibili. |
Resi:
Ingresso
L'input da modificare (per consentire il concatenamento).
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-10-11 UTC.
[null,null,["Ultimo aggiornamento 2024-10-11 UTC."],[[["The `inputs.Input.setCheck()` method is used to define the type of values that a connection on a block can accept."],["It takes a string, an array of strings, or null as an argument, representing the allowed data type(s) or accepting all types if null."],["The method returns the modified Input object for chaining purposes, enabling developers to perform multiple operations on it sequentially."]]],["The `setCheck()` method modifies a connection's compatibility. It accepts a `check` parameter, which can be a string, an array of strings, or `null`. This parameter defines the compatible value type(s); `null` indicates that all types are compatible. The method returns the modified input, enabling method chaining. The purpose is to change the types of values that can be linked to an Input.\n"]]