Module

utils/dom/getresizeobserver

@ckeditor/ckeditor5-utils/src/dom/getresizeobserver

module

Filtering

Classes

Type Definitions

Functions

  • getResizeObserver( callback ) → ResizeObserver

    static

    Returns an instance of ResizeObserver. In browsers that support the ResizeObserver 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.