Open vincentschroeder opened 10 years ago
I'm sorry we can't get the order of items. Because when you drag & drop it just changes the position of items, it doesn't change the order. Best
For what is the drag & drop feature useful if you cant save the state? Or is there an other solution to do this?
We can't store the order but we can store the position insted. You can see at this example: https://github.com/kombai/freewall/blob/master/example/fix-position.html
I am just wondering is there any setting to set a particular block to always sit last of the wall? :)
Now I am using https://github.com/metafizzy/packery . Here you can save the order of the elements from the DOM.
Thanks @vincentschroeder!!! It is a pity that such a useful feature is not present. I'll give packery a go.
I would also really like this feature. I can't really use packery as it lacks the ability to be responsive as far as I can see.
@LeroyDoornebal disregarding your post is 3 years old packery is responsive, see this example: https://codepen.io/desandro/pen/chisC
I try to use the script in dragable mode and want to save the new order permanently in the database, how do I get the new order of bricks after reordering it via drag & drop?
Thanks a lot.