Skip to main content

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

ParameterTypeDescription
obj1anyAn node/group/port ID, or node/group/port, or a DOM element.
obj2anyAn node/group/port ID, or node/group/port, or a DOM element.
callbacksConnectionDragEventHandlersOptional map of callbacks for the connection. See ConnectionDragEventHandlers interface.

Returns:

Connection