Gridstack.js: Gridstack and vueJS

Created on 24 Sep 2017  ·  3Comments  ·  Source: gridstack/gridstack.js

Hi !

I want to know if there's a way to correctly use this grid using vueJS capabilities...

Because of the way DOM is generated, it looks like I cannot add any vue component when I add a widget, even a simple javascript function would not be recognized... It work only with plain HTML, which is useless for me..

I also tried to hide some widgets with a v-if but when theyre showed, it render a static tile (I also tried to use makeWidget(el) but in vain). Same thing if a do a v-for with an array.

Im using the latest version of this grid and vueJs 2.4.2 with webpack

Let me know if you need others informations but this should be clear since its a generic question.

Thanks!

Most helpful comment

I finally succeeded! Using this method for the one interested : https://codepen.io/nyoung697/pen/BperoZ

All 3 comments

I finally succeeded! Using this method for the one interested : https://codepen.io/nyoung697/pen/BperoZ

I have used this approach: https://codepen.io/Tropicalista/pen/PmKajR

I have used this approach: https://codepen.io/Tropicalista/pen/PmKajR
I have a problem with this example
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

myzhibie picture myzhibie  ·  5Comments

adumesny picture adumesny  ·  6Comments

Metal101 picture Metal101  ·  4Comments

athamsnajeeb1 picture athamsnajeeb1  ·  7Comments

ascendantofrain picture ascendantofrain  ·  6Comments