[Dojo-checkins] [dojo] #9443: Tree: method to get/set currently selected item in tree

dojo trac at dojotoolkit.org
Tue Jun 23 23:53:22 EDT 2009


#9443: Tree: method to get/set currently selected item in tree
-------------------------+--------------------------------------------------
 Reporter:  bill         |        Owner:        
     Type:  enhancement  |       Status:  closed
 Priority:  normal       |    Milestone:  1.4   
Component:  Dijit        |      Version:  1.3.0 
 Severity:  normal       |   Resolution:  fixed 
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by bill):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [18379]) Tree enhancements:
   - path attribute to set/get the currently selected item in the tree (ex:
 ["Foods", "Fruit", "Apple"])
   - selectedItem attribute to get/set the currently selected item in the
 tree.  Can only set currently selected item if that item is currently
 visible (ie, already downloaded from the model) and there's only one
 TreeNode matching that item (ie, it's not multi-parented)
   - getNodesByItem() method to get list of !TreeNodes matching a given
 item or item id.

 Thanks to Alessandro Ferrari (alle) (CLA on file) for the great patch!

 Fixes #9443, #9339 !strict.

-- 
Ticket URL: </ticket/9443#comment:1>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list