Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > detachConnectionByTarget

BrowserUITestSupport.detachConnectionByTarget() method#

Detach a connection by simulating the mouse dragging the target endpoint off and dropping it in whitespace.

Signature:

detachConnectionByTarget(c: Connection, events?: EventHandlers): void;

Parameters#

ParameterTypeDescription
cConnectionConnection to detach
eventsEventHandlersMap of event handlers for injecting tests into the lifecycle.

Returns:

void