utils/dom/getresizeobserver
@ckeditor/ckeditor5-utils/src/dom/getresizeobserver
module
Filtering
Classes
-
ResizeObserverPolyfillprivate
A polyfill class for the native
ResizeObserver.
Type Definitions
-
A resize observer object (either native or polyfilled) offering the
ResizeObserverAPI.
Functions
-
getResizeObserver( callback ) → ResizeObserverstatic
Returns an instance of
ResizeObserver. In browsers that support theResizeObserverAPI, the native observer instance is returned. In other browsers, a polyfilled instance is returned instead with a compatible API.Learn more about the native API.
Parameters
callback : functionA function called when any observed element was resized. Refer to the native
ResizeObserverAPI to learn more.
Returns
ResizeObserverAn observer instance.