Skip to content

Commit

Permalink
#31
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuz committed Aug 31, 2017
1 parent 87d513f commit fbb9d1a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ You can also clone the basic demo repository [vue-masonry + vue-cli webpack](htt
![DEPENDENCIES status](https://david-dm.org/shershen08/vue-masonry/status.svg)


⚠️⚠️ **Minor API change** ⚠️⚠️

If you suddenly see error: `Uncaught TypeError: _vue2.default.redrawVueMasonry is not a function` - please upgrade your usage of the plugin's method `redrawVueMasonry` in component methods from

```
Vue.redrawVueMasonry()
```
to
```
this.$redrawVueMasonry();
```

[More details in #31 issue](https://github.com/shershen08/vue-masonry/issues/31)


## Install & Usage

- Get from npm: ```npm install vue-masonry --save ```
Expand Down Expand Up @@ -44,7 +59,7 @@ Properties currently available reproduce most of those on the [original masonry
- ```fit-width="true"``` - sets the width of the container to fit the available number of columns


💡 **New** 💡 : If you need to manually trgiger masonry layout redraw (for example in case if your tile elements amount or content has changed) you can now use `Vue.redrawVueMasonry()` method.
💡💡💡 If you need to manually trigger masonry layout redraw (for example in case if your tile elements amount or content has changed) you can now use `this.redrawVueMasonry()` method. (If you use **old version** `< 0.10.11` it can still be Vue.redrawVueMasonry(), but please consider to upgrade)

### Questions, bugs

Expand Down

0 comments on commit fbb9d1a

Please sign in to comment.