jbaysolutions / vue-grid-layout

A draggable and resizable grid layout, for Vue.js.
https://jbaysolutions.github.io/vue-grid-layout/
MIT License
7.1k stars 1.49k forks source link

Modify Library #253

Open mateo2181 opened 5 years ago

mateo2181 commented 5 years ago

Hello! I am trying to modify library to create a swap function. I have changed vue.config.js to this: selection_003 I run "npm run build-lib" and works. But when I use the library I got this error:

[Vue warn]: Failed to mount component: template or render function not defined. found in --->

at src/components/Grid.vue at src/App.vue Someone know how can I fix this ? Thanks!
rebz commented 4 years ago

@mateo2181 - I know it's been a couple years, did you manage to get swapping to work or did you use a different library?

Jacks349 commented 3 years ago

I'm looking for a way to swap items too, did anyone manage to do that? Basically i would like to be able to swap the items horizontally too instead of vertically only, don't know if and how it's doable

rebz commented 3 years ago

I'm looking for a way to swap items too, did anyone manage to do that? Basically i would like to be able to swap the items horizontally too instead of vertically only, don't know if and how it's doable

I just built a custom solution, no packages. Struggled to find a decent drag and drop package with touch support that was actively maintained.

Jacks349 commented 3 years ago

I'm looking for a way to swap items too, did anyone manage to do that? Basically i would like to be able to swap the items horizontally too instead of vertically only, don't know if and how it's doable

I just built a custom solution, no packages. Struggled to find a decent drag and drop package with touch support that was actively maintained.

Thanks for your answer! So you didn't use this library in the end? It's a shame because except for that, vue-grid-layout has everything i needed

mateo2181 commented 3 years ago

I created this library to be able to swap elements https://github.com/mateo2181/vue-swappable.

rebz commented 3 years ago

I'm looking for a way to swap items too, did anyone manage to do that? Basically i would like to be able to swap the items horizontally too instead of vertically only, don't know if and how it's doable

I just built a custom solution, no packages. Struggled to find a decent drag and drop package with touch support that was actively maintained.

Thanks for your answer! So you didn't use this library in the end? It's a shame because except for that, vue-grid-layout has everything i needed

Correct, all custom solution. I had tried a variety of packages out there but I was building a planogram builder for vending machines and there were too many variables required... a few of which are:

I created this library to be able to swap elements https://github.com/mateo2181/vue-swappable.

Interesting, I’m working on another drag and drop project with touch support for a custom video surveillance dashboard. I once looked at Draggable.JS but saw it was no longer maintained. I will have to check this out.

Jacks349 commented 3 years ago

Hello everyone, i gave it a try to implement my own swapping here