본문으로 건너뛰기

AutoResizer

Automatic resizer that uses both ResizeObserver and window resize event

class AutoResizer

Properties

Returns whether AutoResizer is enabled

Methods

Disable resizer

Enable resizer

Constructor

new AutoResizer(useResizeObserver: boolean, onResize: (() => any)): AutoResizer

Parameters

useResizeObserver

boolean

onResize

(() => any)

Properties

enabled

readonly
enabled

boolean

Returns whether AutoResizer is enabled

useResizeObserver

readonly
useResizeObserver

boolean

Methods

disable

disable

AutoResizer

disable(): AutoResizer

Disable resizer

enable

enable

AutoResizer

enable(element: HTMLElement): AutoResizer

Enable resizer

Parameters

element

HTMLElement