blockly > Block > getChildren
Block.getChildren() method
Find all the blocks that are directly nested inside this one. Includes value and statement inputs, as well as any following statement. Excludes any connection on an output tab or any preceding statement. Blocks are optionally sorted by position; top to bottom.
Signature:
getChildren(ordered: boolean): Block[];
Parameters
Parameter | Type | Description |
---|---|---|
ordered | boolean | Sort the list if true. |
Returns:
Block[]
Array of blocks.