Home > @jsplumb/core > JsPlumbInstance > connect
#
JsPlumbInstance.connect() methodConnect one element to another.
Signature:
connect(params: ConnectParams<T["E"]>, referenceParams?: ConnectParams<T["E"]>): Connection;
#
ParametersParameter | Type | Description |
---|---|---|
params | ConnectParams<T["E"]> | At the very least you need to supply a source and target. |
referenceParams | ConnectParams<T["E"]> | Optional extra parameters. This can be useful when you're creating multiple connections that have some things in common. |
Returns: