Stay organized with collections Save and categorize content based on your preferences.

blockly > BlockSvg > appendInput_

BlockSvg.appendInput_() method

Add a value input, statement input or local variable to this block.

Signature:

protected appendInput_(type: number, name: string): Input;

Parameters

Parameter Type Description
type number One of Blockly.inputTypes.
name string Language-neutral identifier which may used to find this input again. Should be unique to this block.

Returns:

Input

The input object created.