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

blockly > Mutator > reconnect

Mutator.reconnect() method

Reconnect an block to a mutated input.

Signature:

static reconnect(connectionChild: Connection, block: Block, inputName: string): boolean;

Parameters

Parameter Type Description
connectionChild Connection Connection on child block.
block Block Parent block.
inputName string Name of input on parent block.

Returns:

boolean

True iff a reconnection was made, false otherwise.