ember-resize-mixin
v0.1.1
Published
Ember Resize Mixin allows child views to resize after parent view was resized.
Downloads
7
Readme
ember-resize-mixin
Ember Resize Mixin allows child views to resize after parent view was resized.
Use
import ResizeMixin from 'ember-resize-mixin/main';
export default View.extend(ResizeMixin, {
/**
* Trigger this function when parent (or window) is resized. Property name does not matter.
*/
onResize: function() {
// do what you want when resize is triggered
}.on('resize')
});
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.