I'm struggling with adding VUE components to a GridStack because they aren't reacting properly.
Check out the issue in this CodePen: https://codepen.io/adelriosantiago/pen/qBaXjrr?editors=1010
Since GridStack only accepts HTML, my workaround involves creating a new Vue instance using
let instance = new gridStackItem();
and then mounting it with instance.$mount();
to access the compiled HTML in instance.$el
.
After that, I use addWidget
following GridStack's documentation. The added elements appear correctly (you can see "SUBTEXT" text) but unfortunately, these components are not reactive, as indicated by the inability to change their text via the input
field (refer to image below).
https://i.sstatic.net/g170L.png