Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResizeListenerOptions

Hierarchy

  • ResizeListenerOptions

Index

Properties

enabled?: boolean

Boolean if the resize observer should be enabled. You can swap this boolean to true or false to add/remove the event listeners. The event listeners will always be removed when the parent component is unmounted though.

immediate?: boolean

Boolean if the resize event handler should be called immediately once the component is mounted. The default behavior will be to only call the onResize event immediately client side and can never be invoked server side since it resize on the window to dispatch a UIEvent.

onResize: EventListener

A function to call when the app is resized.

options?: boolean | AddEventListenerOptions

Any event listener options to use when attaching the event.

Generated using TypeDoc