blockly > Block > getInputTargetBlock

Block.getInputTargetBlock() method

Fetches the block attached to the named input.

Signature:

getInputTargetBlock(name: string): Block | null;

Parameters

Parameter Type Description
name string The name of the input.

Returns:

Block | null

The attached value block, or null if the input is either disconnected or if the input does not exist.