Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > relocateSource

BrowserUITestSupport.relocateSource() method#

Relocate the source of the given connection onto a different element

Signature:

relocateSource(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