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
Parameter | Type | Description |
---|---|---|
source | any | Node/Port/Group id, node/port/group, or DOM element. |
target | any | Node/Port/Group id, node/port/group, or DOM element. |
data | ObjectData | Optional data for the edge. |
Returns:
Edge