blockly > Block > getInputWithBlock

Block.getInputWithBlock() method

Return the input that connects to the specified block.

Signature:

getInputWithBlock(block: Block): Input | null;

Parameters

Parameter Type Description
block Block A block connected to an input on this block.

Returns:

Input | null

The input (if any) that connects to the specified block.