etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 460 forks source link

A GUI for managing a tree? #223

Open judgej opened 8 years ago

judgej commented 8 years ago

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?

judgej commented 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.

Stevildo commented 8 years ago

check this out: http://ilikenwf.github.io/example.html

judgej commented 8 years ago

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?

Stevildo commented 8 years ago

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.

judgej commented 8 years ago

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.

dineshbabu179 commented 8 years ago

http://keenthemes.com/preview/metronic/theme/admin_3/ui_nestable.html