Home > @jsplumb/test > BrowserUITestSupport > relocate
#
BrowserUITestSupport.relocate() methodRelocate 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;
#
ParametersParameter | Type | Description |
---|---|---|
conn | Connection | Connection to relocate |
idx | number | 0 for source, 1 for target |
newEl | Element | The DOM element to drop the source/target onto. |
events | EventHandlers | Optional map of event handlers, allowing you to inject tests at various phases in the lifecycle |
Returns:
void