How can I control the order of nodes added to a custom tree? I have multiple classes adding root nodes to an app alias and a tree in that new section - but I dont seem to be able to control the order of those nodes.
You'll need to create a custom menu action for that one, so storing the sortorder and then creating a dialog that will allow you to sort them (using ui sortable for example)
Custom tree node sort order
How can I control the order of nodes added to a custom tree? I have multiple classes adding root nodes to an app alias and a tree in that new section - but I dont seem to be able to control the order of those nodes.
Looking for an answer to this. Following Tim's guide. Just need the sort order code.
In the tree attribute you decoreate your tree class with there is a sortorder property. That can be used to order the different rood nodes.
Thanks for the reply Dave!
I didn't read your question carefully. I have 1 root node and I want to sort the level 1 child nodes using the new 7 sort flyout function.
Comment author was deleted
You'll need to create a custom menu action for that one, so storing the sortorder and then creating a dialog that will allow you to sort them (using ui sortable for example)
Thanks Tim, Is it possible to use an existing angular backoffice view/directive, like the existing sort flyout?
Comment author was deleted
Don't think so since you are working with custom objects so code also needs to be custom
is working on a reply...