Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Eingaben > Eingabe > setCheck
Ändern Sie die Kompatibilität einer Verbindung.
Unterschrift:
setCheck(check: string | string[] | null): Input;
Parameter
Parameter |
Typ |
Beschreibung |
check |
String | string[] | null |
Kompatibler Werttyp oder Liste von Werttypen Null, wenn alle Typen kompatibel sind. |
Gibt zurück:
Eingabe
Die Eingabe, die geändert wird, um Verkettungen zuzulassen.
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-10-11 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]