Skip to main content

Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > connect

jsPlumbToolkitTestHarness.connect() method

Connect the given source and target via a call on the Toolkit, ie. without using the mouse.

Signature:

connect(source: any, target: any, data?: ObjectData): Edge;

Parameters

ParameterTypeDescription
sourceanyNode/Port/Group id, node/port/group, or DOM element.
targetanyNode/Port/Group id, node/port/group, or DOM element.
dataObjectDataOptional data for the edge.

Returns:

Edge