#5003 closed enhancement (fixed)
Tree: support separate (user-defined) icons for open / closed state
Reported by: | bill | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
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(...); } .dijitTreeNodeExpandedContents .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.
Change History (7)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Summary: | Tree: separate icons for open / closed state → Tree: support separate (user-defined) icons for open / closed state |
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 13 years ago by
comment:4 Changed 13 years ago by
comment:5 Changed 13 years ago by
comment:7 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
(In [11699]) Add "opened" parameter" to getIconClass() callback, to support separate (user-defined) icons for opened/closed tree nodes, typically opened and closed folders. Fixes #5003.