- Index
- »
- dom
- »
- ResizeObserver
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
make
src
new make()
Create a new ResizeObserver instance.
observe
onResize
src
Void onResize(|ResizeObserverEntry[]| callback)
Callback when an observed target size has been modified.