I think this would be a useful feature. I don’t suppose it would be easy to implement. In the meantime, there is a very useful tutorial for this by @t11. I’ve used this technique a number of times.
But indeed the big question is how to pass the id’s back to the database after reordering.
I was thinking maybe auto populating hidden fields containing the order number and id that are submitted.
Very good idea! Maybe to have kinda „wizard or help windows“ to select which columns should be stored or passed. I guess thats the only way.
I think about some GUI where it would be possible to: Choose columns to store/pass and in which format. So it could be passed to mysql or even API or maybe file.
@George that sortable JS is Amazing! Woow and I love that nested stuff its so powerful! Imagine creating your own dynamic Navigation and reorder or nest it easily!
Looks like passing that as an array or json would be helpful and then push to file, api or mysql…
Important:
There is already a feature request as I know for sortable. Maybe to merge that topic here to the other existing one…
I can’t imagine a feature quite like that would be added to Wappler. (I think menus like that can be useful - but they were excluded from Bootstrap and are not as popular as they were.)
However, the main challenge - having a means to control the order of menu items using drag and drop (however that menu is created) - is covered in the tutorial I linked to. As items are reordered, the relevant field in the database (which controls the sort order) is updated.
Hi Serhat,
I can’t find anything in this tutorial related to drag&drop
The original poster suggested drag&drop to be added. Are you referring to multi level menu, as this is not really planned and we are not fans of multi level menus in responsive design?