Skip to main content

Home > @jsplumb/core > JsPlumbInstance > connect

JsPlumbInstance.connect() method#

Connect one element to another.

Signature:

connect(params: ConnectParams<T["E"]>, referenceParams?: ConnectParams<T["E"]>): Connection;

Parameters#

ParameterTypeDescription
paramsConnectParams<T["E"]>At the very least you need to supply a source and target.
referenceParamsConnectParams<T["E"]>Optional extra parameters. This can be useful when you're creating multiple connections that have some things in common.

Returns:

Connection