class dom::ResizeObserver

sys::Obj
  dom::ResizeObserver

@Js

Source

ResizeObserver invokes a callback when Elem size is changed.

disconnect

This disconnect()

Source

Disconnect this observer from all resize events for all nodes.

make

new make()

Source

Create a new ResizeObserver instance.

observe

This observe(Elem target)

Source

Register to receive resize events for given node.

onResize

Void onResize(|ResizeObserverEntry[]| callback)

Source

Callback when an observed target size has been modified.

unobserve

This unobserve(Elem target)

Source

Stop receiving resize events for given node.