Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Blockieren > getInputWithBlock
Gibt die Eingabe zurück, die eine Verbindung zum angegebenen Block herstellt.
Unterschrift:
getInputWithBlock(block: Block): Input | null;
Parameter
Parameter |
Typ |
Beschreibung |
Block |
Blockieren |
Ein Block, der mit einem Eingang in diesem Block verbunden ist. |
Gibt zurück:
Eingabe | null
Die Eingabe (falls vorhanden), die eine Verbindung zum angegebenen Block herstellt.
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-08-21 (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-08-21 (UTC)."],[[["This method helps you find the input on a block that is connected to a specific other block."],["It needs the connected block as an argument and returns the matching input, or null if there's no connection."],["`getInputWithBlock` is part of the `Block` class in Blockly and works with `Input` objects."]]],["The `getInputWithBlock()` method, part of the `Block` class, identifies the input connected to a given block. It accepts a `Block` as a parameter, representing a block connected to an input. The method then returns an `Input` object if a connection exists, otherwise, it returns `null`. This method's core function is to determine and return the specific input on a block that links to another specified block.\n"]]