[Dojo-checkins] [dojo] #5003: Tree: separate icons for open / closed state

dojo trac at dojotoolkit.org
Sat Nov 3 21:26:02 UTC 2007


#5003: Tree: separate icons for open / closed state
-------------------------+--------------------------------------------------
 Reporter:  bill         |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  1.1
Component:  Dijit        |     Version:  0.9
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 A user might want to have separate tree node icons for opened and closed
 states (think of Windows Explorer with the opened and closed folders).
 Want to have a CSS pattern/rule like:
 {{{
 .dijitTreeNodeContents .myIcon {
   background-image: url(...);
 }
 .dijitTreeNodeExpanded Contents .myIcon {
   background-image: url(...);
 }
 }}}

 The problem is that that expanded/contracted state can't be written on
 TreeNode.domNode because it will seep down to the children TreeNodes.

 Alternately, make getIconClass() be called every time the node state
 changes (from expanded to collapsed), and pass in the new state.

-- 
Ticket URL: <http://trac.dojotoolkit.org/ticket/5003>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list