Skip to main content

Home > blockly > Block > getInput

Block.getInput() method

Fetches the named input object.

Signature:

getInput(name: string): Input | null;

Parameters

ParameterTypeDescription
namestringThe name of the input.

Returns:

Input | null

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