@nightingale-elements/nightingale-new-core
Version:
Base Elements for Nightingale Components
24 lines (12 loc) • 662 B
Markdown
Uses a `ResizeObserver` to detect changes in the size of the component, and sets the `width` and `height` propertes.
The minimum height of the track as a numeric value in pixels.
The minimum width of the track as a numeric value in pixels.
Override this method if there is anything to be done when the dimensions change after the component is resized.
Implements the mixin `withDimensions` to be able to set the values of `width` and `height` of the component.