Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shershen08 committed Jun 9, 2018
1 parent 4722c84 commit 11525de
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# vue-masonry

**Current version: 0.11.2**
**Current version: 0.11.3**

Vue.js directive for masonry blocks layouting. Original [masonry library](http://masonry.desandro.com/).

Expand All @@ -20,7 +20,12 @@ You can also clone the basic demo repository [vue-masonry + vue-cli webpack](htt
- Use in component code
```
import Vue from 'vue'
// import es6 style
import {VueMasonryPlugin} from 'vue-masonry';
// or using CJS
// const VueMasonryPlugin = require('vue-masonry').VueMasonryPlugin
Vue.use(VueMasonryPlugin)
Expand All @@ -31,6 +36,19 @@ You can also clone the basic demo repository [vue-masonry + vue-cli webpack](htt
</div>
```
### Usage directly in the browser
Since v 0.11.3 in-browser usage is available using a direct script inclusion on the page like so:
```
<script src="https://unpkg.com/[email protected]/dist/vue-masonry-plugin-window.js"></script>
```
```
var VueMasonryPlugin = window["vue-masonry-plugin"]
Vue.use(VueMasonryPlugin)
```
Properties currently available reproduce most of those on the [original masonry plugin](http://masonry.desandro.com/options.html):
Expand Down

0 comments on commit 11525de

Please sign in to comment.