Ticket #5003 (closed enhancement: fixed)
Tree: support separate (user-defined) icons for open / closed state
| Reported by: | bill | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
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
Note: See
TracTickets for help on using
tickets.