Parameters used to create a DOMElement

interface DOMElementParams {
    element?: string | Element;
    priority?: number;
    onSizeChanged?: ((boundingRect) => void);
    onPositionChanged?: ((boundingRect) => void);
}

Properties

element?: string | Element

HTMLElement or string representing an HTMLElement selector of the element the resize observer should track

priority?: number

Order in which the resizeManager callback is executed

onSizeChanged?: ((boundingRect) => void)

Callback to tun when the element size changed

Type declaration

onPositionChanged?: ((boundingRect) => void)

Callback to tun when the element position changed

Type declaration