1.0.3 • Published 7 years ago

@ezraobiwale/vue-masonry v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

vue-masonry

A VueJS implementation for desandro's masonry

Installation

npm i -S @ezraobiwale/vue-masonry

Usage

import Vue from 'vue'
import VueMasonry from '@ezraobiwale/vue-masonry'

Vue.use(VueMansory);

new Vue({
  // ...
});
<ul class="grid">
  <masonry :selector=".grid" :options="optionObject" :data="dataArray">
    <template slot-scope="data">
      <li class="grid-item">
        Index: {{ data.index }}<br />
        Current item: {{ data.current }}
      </li>
    </template>
  </masonry>
</ul>

Note