blockly > Block > allInputsFilled
Prüft rekursiv, ob alle Anweisungs- und Werteingaben mit Blöcken gefüllt sind. Prüft außerdem alle folgenden Anweisungsblöcke in diesem Stack.
Unterschrift:
allInputsFilled(opt_shadowBlocksAreFilled?: boolean): boolean;
Parameter
Parameter |
Typ |
Beschreibung |
opt_shadowBlocksAreFilled |
boolean |
Optional: Mit diesem optionalen Argument wird festgelegt, ob Schattenblöcke als ausgefüllt gezählt werden. Der Standardwert ist „true“. |
Gibt zurück:
boolean
"True", wenn alle Eingaben ausgefüllt sind, andernfalls "False".
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-11-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-08 (UTC)."],[[["The `allInputsFilled()` method in Blockly recursively checks if all statement and value inputs within a block, and subsequent statement blocks in the stack, are filled with blocks."],["It accepts an optional boolean parameter, `opt_shadowBlocksAreFilled`, to determine if shadow blocks should be considered as filled (defaults to true)."],["This method returns `true` if all inputs are filled and `false` otherwise, providing a way to validate the completeness of a block's connections."]]],["The `Block.allInputsFilled()` method recursively verifies if all statement and value inputs within a block, including its following statement blocks, are filled. It accepts an optional boolean parameter, `opt_shadowBlocksAreFilled`, to determine if shadow blocks should be considered as filled (default: true). The method returns `true` if all inputs are filled, and `false` otherwise.\n"]]