blockly > BlockSvg > getChildren

BlockSvg.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): BlockSvg[];

Parameters

Parameter Type Description
ordered boolean Sort the list if true.

Returns:

BlockSvg[]

Array of blocks.