Stay organized with collections
Save and categorize content based on your preferences.
blockly > Block > allInputsFilled
Recursively checks whether all statement and value inputs are filled with blocks. Also checks all following statement blocks in this stack.
Signature:
allInputsFilled(opt_shadowBlocksAreFilled?: boolean): boolean;
Parameters
Parameter |
Type |
Description |
opt_shadowBlocksAreFilled |
boolean |
(Optional) An optional argument controlling whether shadow blocks are counted as filled. Defaults to true. |
Returns:
boolean
True if all inputs are filled, false otherwise.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eallInputsFilled()\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an optional boolean parameter, \u003ccode\u003eopt_shadowBlocksAreFilled\u003c/code\u003e, to determine if shadow blocks should be considered as filled (defaults to true).\u003c/p\u003e\n"],["\u003cp\u003eThis method returns \u003ccode\u003etrue\u003c/code\u003e if all inputs are filled and \u003ccode\u003efalse\u003c/code\u003e otherwise, providing a way to validate the completeness of a block's connections.\u003c/p\u003e\n"]]],["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"],null,["[blockly](./blockly.md) \\\u003e [Block](./blockly.block_class.md) \\\u003e [allInputsFilled](./blockly.block_class.allinputsfilled_1_method.md)\n\nBlock.allInputsFilled() method\n------------------------------\n\nRecursively checks whether all statement and value inputs are filled with blocks. Also checks all following statement blocks in this stack.\n\n**Signature:** \n\n allInputsFilled(opt_shadowBlocksAreFilled?: boolean): boolean;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|---------------------------|---------|--------------------------------------------------------------------------------------------------------------|\n| opt_shadowBlocksAreFilled | boolean | *(Optional)* An optional argument controlling whether shadow blocks are counted as filled. Defaults to true. |\n\n**Returns:**\n\nboolean\n\nTrue if all inputs are filled, false otherwise."]]