Package Exports
- ember-resize-observer-modifier
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-resize-observer-modifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ember-resize-observer-modifier
Use ResizeObserver
through an Ember Modifier
Compatibility
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Installation
ember install ember-resize-observer-modifier
Usage
This addon provides an Ember modifier for attaching a ResizeObserver
to an element in your Ember template and calling an action when the observer fires.
In the following example, this.onChange
will be called any time that the element changes size.
<div {{observe-resize this.onChange}} />
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.