Opened 14 years ago
Closed 14 years ago
#3314 closed task (fixed)
Tree: implement icons
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
The tree control should be able to put icons to the left of each label. Icons should be specified in CSS as background images (they won't show up in high-contrast mode but that's OK because the text is still there).
User defines a class for each icon (just like Button and Menu icons) and then defines a function that generates the icon class based on the dojo.data.item and the node expanded/closed state.
Maybe a default code like
iconAttr: "icon", getIconClass: function(store, item, /*Boolean*/ opened){ return store.getValue(item, this.iconAttr); }
(For folder nodes there can be two icons, one for when it's expanded and one for when it's contracted, so we call the function every time we change state.)
Change History (4)
comment:1 Changed 14 years ago by
Milestone: | 0.9 → 1.0 |
---|
comment:2 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 14 years ago by
Milestone: | 1.0 → 0.9 |
---|---|
Status: | new → assigned |
comment:4 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [10265]) Implement icons for tree (fixes #3314). Still need to support change of icon for expanded/contracted state (ie, opened/closed folder)