Title: move node up and down in tree [Solved] Post by: devnull on June 05, 2014, 04:53:28 PM How can I drag items up and down the tree ?
My tree looks like this: Code: tree I would like to be able to select any child and move it up or down the tree, or use a context menu to mode up or down the selected node ? Code: tree Title: Re: move node up and down in tree Post by: stworthy on June 06, 2014, 12:12:22 AM Please extend a new method to achieve this functionality.
Code: $.extend($.fn.tree.methods,{ Code: var node = $('#tt').tree('find','123'); Title: Re: move node up and down in tree [Solved] Post by: devnull on June 06, 2014, 01:33:25 AM That's great thank you.
Could this also be somehow used with drag and drop ?? At the moment I have a context menu to move up and down, dragging would be neat, but not essential. Thanks again. |