blockly > RenderedConnection > disconnectInternal

RenderedConnection.disconnectInternal() method

Disconnect two blocks that are connected by this connection.

Signature:

disconnectInternal(setParent?: boolean): void;

Parameters

Parameter Type Description
setParent boolean (Optional) Whether to set the parent of the disconnected block or not, defaults to true. If you do not set the parent, ensure that a subsequent action does, otherwise the view and model will be out of sync.

Returns:

void