Skip to content

alexlafroscia/ember-resize-observer-modifier

Repository files navigation

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.

About

Use ResizeObserver through an Ember Modifier

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •