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

blockly > Block > moveNumberedInputBefore

Block.moveNumberedInputBefore() method

Move a numbered input to a different location on this block.

Signature:

moveNumberedInputBefore(inputIndex: number, refIndex: number): void;

Parameters

Parameter Type Description
inputIndex number Index of the input to move.
refIndex number Index of input that should be after the moved input.

Returns:

void