type

ResizeObserver

src @Js
class ResizeObserver : Obj

ResizeObserver invokes a callback when Elem size is changed.

constructors

make

Create a new ResizeObserver instance.

methods

disconnect

Disconnect this observer from all resize events for all nodes.

observe

Register to receive resize events for given node.

onResize

Callback when an observed target size has been modified.

unobserve

Stop receiving resize events for given node.

Slot Details

disconnect

src This disconnect()

Disconnect this observer from all resize events for all nodes.

make

src new make()

Create a new ResizeObserver instance.

observe

src This observe(Elem target)

Register to receive resize events for given node.

onResize

src Void onResize(|ResizeObserverEntry[]| callback)

Callback when an observed target size has been modified.

unobserve

src This unobserve(Elem target)

Stop receiving resize events for given node.