AutoResizer
Automatic resizer that uses both ResizeObserver and window resize event
class AutoResizer
Constructor
new AutoResizer(useResizeObserver: boolean, onResize: (() => any)): AutoResizer
Parameters
useResizeObserver
boolean
onResize
(() => any)
Properties
enabled
enabledboolean
Returns whether AutoResizer is enabled
useResizeObserver
useResizeObserverboolean
Methods
disable
disable
disable(): AutoResizer
Disable resizer
enable
enable
enable(element: HTMLElement): AutoResizer
Enable resizer
Parameters
element
HTMLElement