Open judgej opened 8 years ago
https://github.com/RubaXa/Sortable is a great front-end for a drag-and-drop GUI for organising items in a single list - sorting siblings. Moving a node to a new parent is a little more tricky, and does not seem to be supported. It kind of almost works.
check this out: http://ilikenwf.github.io/example.html
That's pretty nice.
For my last application, I needed to be able to lock the structure of the tree, so items could not be move to other parents, but still needed to be able to change the order of items sharing a single parent.
Would this solution provide options or a callbacks to allow that kind of thing to be enforced?
thats what I found out from docu: •It is possible to define elements that will not accept a new nested item/list and a maximum depth for nested items •The root level can be protected •The parentship of items can be locked, just as if it was a family tree.
The parentship of items can be locked, just as if it was a family tree.
Perfect (and described much more clearly than I did). I'll have a play - thank you.
Any recommendations on what is available for building and restructuring trees in Laravel? Some approaches that could work:
Any other approaches that are both reasonably simple to implement and reasonably understandable to use? Any ready-made solutions or examples to look at?