paulcollett / vue-masonry-css

Vue.js Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/vue-masonry-css/demo/
MIT License
478 stars 42 forks source link

[Feature-Request] Adding events to masonary #21

Open DanielNetzeriAm opened 5 years ago

DanielNetzeriAm commented 5 years ago

At the moment i'm wrapping complex components in the masonary and I could use events to the grid, eg. rendered(), rerendered(), etc...

lil5 commented 5 years ago

If you're interested in changing some of the props you can use watchers.

watchers: {
  'cols': function () {
    this.$nextTick(()=> {
      this.recalculate();
    });
  },
}

This was typed on a phone so not 100% accurate but should get you there :+1: