Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > dragConnectionBetweenVertexElements
jsPlumbToolkitTestHarness.dragConnectionBetweenVertexElements() method
Drags a connection between two vertices, either by supplying the ID of the vertices, or the element representing the vertex and some query selector that identifies a part of the dom element. We use this in the Toolkit's own test suite to ensure that connections can be dragged from specific parts of some element, or that a connection source on an element does not cause the element to be dragged, etc.
Signature:
dragConnectionBetweenVertexElements(source: string | [string, string], target: string | [string, string], callbacks: any): Connection;
Parameters
Parameter | Type | Description |
---|---|---|
source | string | [string, string] | |
target | string | [string, string] | |
callbacks | any |
Returns:
Connection