Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > relocate

BrowserUITestSupport.relocate() method#

Relocate either the source or the target of the given connection to a different element.

Signature:

relocate(conn: Connection, idx: number, newEl: Element, events?: EventHandlers): void;

Parameters#

ParameterTypeDescription
connConnectionConnection to relocate
idxnumber0 for source, 1 for target
newElElementThe DOM element to drop the source/target onto.
eventsEventHandlersOptional map of event handlers, allowing you to inject tests at various phases in the lifecycle

Returns:

void