createResizeObserver():
object
Create a resize observer object for a single element
object
An object containing the store with the dimensions of observed element (ResizeObserverEntry), the directive to be applied to the html element to be observed
dimensions$:
ReadableSignal<undefined|ResizeObserverEntry>
directive:
Directive<void,SSRHTMLElement>
createResizeObserverMap():
object
Create a resize observer that can be applied to multiple elements
object
An object containing the store with the dimensions map of observed elements (ResizeObserverEntry), the directive to be applied to the html element to be observed
dimensionsMap$:
ReadableSignal<Map<HTMLElement,ResizeObserverEntry>>
directive:
Directive<void,SSRHTMLElement>