Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > relocateTarget

BrowserUITestSupport.relocateTarget() method#

Relocate the target of the given connection onto a different element

Signature:

relocateTarget(conn: Connection, newEl: Element, events?: EventHandlers): void;

Parameters#

ParameterTypeDescription
connConnectionConnection to relocate target for
newElElementDOM Element to drop the target ontp
eventsEventHandlersOptional map of event handlers, allowing you to inject tests at various phases in the lifecycle

Returns:

void