ResizableContainerObserver Function

ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when the observed element is resized. This implementation properly handles observing element in pop-out/child windows. If children nodes are defined then the div added by the component is considered the container whose size will be observed. If no children are provided then the component will report size changes from its parent container.

ResizableContainerObserver(__namedParameters: { children?: ReactNode, onResize: (width: number, height: number) => void }): Element

Parameter Type Description
__namedParameters { children?: ReactNode, onResize: (width: number, height: number) => void }  

Returns - Element

Defined in

Last Updated: 05 April, 2024