1.1.1 • Published 5 years ago
ember-resize-observer-modifier v1.1.1
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-modifierUsage
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.