Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > dragConnection
jsPlumbToolkitTestHarness.dragConnection() method
Connect, using the mouse, from obj1 to obj2. This will throw an Error if either or both of the arguments cannot be resolved. Any interceptors you have setup on the underlying Toolkit instance will be invoked - this functions just as if the user had used the mouse to drag a connection from one object to the other.
Signature:
dragConnection(obj1: any, obj2: any, callbacks?: ConnectionDragEventHandlers): Connection;
Parameters
| Parameter | Type | Description |
|---|---|---|
| obj1 | any | An node/group/port ID, or node/group/port, or a DOM element. |
| obj2 | any | An node/group/port ID, or node/group/port, or a DOM element. |
| callbacks | ConnectionDragEventHandlers | Optional map of callbacks for the connection. See ConnectionDragEventHandlers interface. |
Returns:
Connection