blockly > Block > getInput

Block.getInput() method

Fetches the named input object.

Signature:

getInput(name: string): Input | null;

Parameters

Parameter Type Description
name string The name of the input.

Returns:

Input | null

The input object, or null if input does not exist.