blockly > Block > unplug

Block.unplug() method

Unplug this block from its superior block. If this block is a statement, optionally reconnect the block underneath with the block on top.

Signature:

unplug(opt_healStack?: boolean): void;

Parameters

Parameter Type Description
opt_healStack boolean (Optional) Disconnect child statement and reconnect stack. Defaults to false.

Returns:

void