All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.delegate.ResizeHandler.d.ts Maven / Gradle / Ivy

type ResizeObserverCallback = () => Promise | void;
/**
 * Allows to register/deregister resize observers for a DOM element
 *
 * @public
 * @class
  */
declare class ResizeHandler {
    /**
     * @public
     * @param element UI5 Web Component or DOM Element to be observed
     * @param callback Callback to be executed
     */
    static register(element: HTMLElement, callback: ResizeObserverCallback): void;
    /**
     * @public
     * @param element UI5 Web Component or DOM Element to be unobserved
     * @param callback Callback to be removed
     */
    static deregister(element: HTMLElement, callback: ResizeObserverCallback): void;
}
export default ResizeHandler;
export type { ResizeObserverCallback, };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy