Skip to main content

blockly > Workspace > allInputsFilled

Workspace.allInputsFilled() method

Checks whether all value and statement inputs in the workspace are filled with blocks.

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.