For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface ResizeObserver
interface ResizeObserver {
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
Methods
disconnect
-
The
disconnect()method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.Returns void
observe
-
The
observe()method of the ResizeObserver interface starts observing the specified Element or SVGElement.Parameters
- target: Element
Optionaloptions: ResizeObserverOptions
Returns void
unobserve
-
The
unobserve()method of the ResizeObserver interface ends the observing of a specified Element or SVGElement.Parameters
- target: Element
Returns void
The
ResizeObserverinterface reports changes to the dimensions of an Element's content or border box, or the bounding box of an SVGElement.MDN Reference