Skip to main content

Home > @jsplumbtoolkit/browser-ui > setAbsolutePosition

setAbsolutePosition() function#

Sets the position of the given DOM element, by setting values for left and top on the element's style.

Signature:

export declare function setAbsolutePosition(element: Element, x: number, y: number): void;

Parameters#

ParameterTypeDescription
elementElement
xnumberLeft position, in pixels.
ynumberTop position, in pixels.

Returns:

void