ResizeObserver

The ResizeObserver interface reports changes to the dimensions of an Element's content or border box, or the bounding box of an SVGElement.

MDN Reference

Constructors

Link copied to clipboard
constructor(callback: ResizeObserverCallback)

Functions

Link copied to clipboard

The disconnect() method of the or SVGElement targets.

Link copied to clipboard
fun observe(target: Element, options: ResizeObserverOptions = definedExternally)

The observe() method of the ``js-nolint observe(target) observe(target, options) `` - target - : A reference to an Element or SVGElement to be observed.

Link copied to clipboard
fun unobserve(target: Element)

The unobserve() method of the ``js-nolint unobserve(target) `` - target - : A reference to an Element or SVGElement to be unobserved.