utils/dom/getresizeobserver
@ckeditor/ckeditor5-utils/src/dom/getresizeobserver
module
Filtering
Classes
-
ResizeObserverPolyfill
private
A polyfill class for the native
ResizeObserver
.
Type Definitions
-
A resize observer object (either native or polyfilled) offering the
ResizeObserver
API.
Functions
-
getResizeObserver( callback ) → ResizeObserver
static
Returns an instance of
ResizeObserver
. In browsers that support theResizeObserver
API, 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 : function
A function called when any observed element was resized. Refer to the native
ResizeObserver
API to learn more.
Returns
ResizeObserver
An observer instance.