Skip to main content

Home > blockly > Connection > disconnectInternal

Connection.disconnectInternal() method

Disconnect two blocks that are connected by this connection.

Signature:

protected disconnectInternal(setParent?: boolean): void;

Parameters

ParameterTypeDescription
setParentboolean(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