Function parentSize

Sets width/height atributes on the given element according to the size of its parent.

  • Type Parameters

    • V extends HTMLElement | SVGSVGElement

    Parameters

    • domQueryOrEl: string | V

      Elememnt to resize

    • OptionalonResized: ((args: ElementResizeArgs<V>) => void)

      Callback when resize happens

    • timeoutMs: number = 100

      Timeout for debouncing events

    Returns Unsubscriber