pcirella / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Traverse siblings via previous/next APIs #261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?
Ability to traverse siblings via .previousSibling and .nextSibling.  

NOTE: I am looking into using node.parent.getChildren as work-around, but I 
don't recall ever working with a treeview control not offering easy prev/next 
sibling node traversal.  

What goal would this enhancement help you achieve?
Initially, imitate ALT+ selection like Windows Explorer, whereby a user can 
select a range of nodes.  Especially painful is I already have homegrown lists 
imitating Windows Explorer to move items *into* the treeview, but can't get 
dynatree to imitate Windows Explorer easily to move nodes *out of* treeview.  
This breaks style/flow/UX consistency.

Also, many more uses of ability to traverse siblings in forward/backwards 
fashion.

Original issue reported on code.google.com by wbgil...@gmail.com on 28 Dec 2011 at 9:07

GoogleCodeExporter commented 9 years ago
sorry, I forgot to add these to the documentation:
  node.getPrevSibling(), node.getNextSibling(), node.getParent()

Original comment by moo...@wwwendt.de on 29 Dec 2011 at 8:19

GoogleCodeExporter commented 9 years ago
I'll read through the source more carefully next time.
Thanks for replying.

Original comment by wbgil...@gmail.com on 29 Dec 2011 at 4:58

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 7 Oct 2012 at 7:22