My goal is to get a way to upload multiple images and also set in which order they should be displayed later on (it’s for an ecommerce website). I have an idea which seems to work. But I would like to know if there is a better way of doing this. Here is my code. Let’s assume the number of
Tag: sortablejs
Drag an element but drop an array of other elements
I’m using the Vue.Draggable library that is based on the SortableJS library. In my code I have 2 draggable lists but I have a third one that is not incorporated with simple elements. The third list has an array of object with an endpoint entry in each one, and when I drop my element I want to do a function