Interface IOnResizeProps

Hierarchy

  • IOnResizeProps

Properties

element?: false | Element | Element[]

Observable element

hasBothEvents?: boolean

Has both viewport callbacks and ResizeObserver

Default

false

Callback on resize

resizeDebounce?: number

Resize debounce timeout

Default

0
viewportTarget?: keyof IViewportCallbackTypes

Viewport target on resize. It will be used if element is not provided or ResizeObserver is not supported.

Default

'any'