Changes between Initial Version and Version 2 of Ticket #3314
- Timestamp:
- Aug 11, 2007, 6:42:13 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3314
-
Property
Milestone
changed from
0.9
to1.0
-
Property
Milestone
changed from
-
Ticket #3314 – Description
initial v2 1 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), and then each dojo.data.item should contain enough information to be able to construct a CSS class to pull in the image. 1 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). 2 3 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. 2 4 3 5 Maybe a default code like … … 5 7 iconAttr: "icon", 6 8 7 getIconClass: function(store, item ){9 getIconClass: function(store, item, /*Boolean*/ opened){ 8 10 return store.getValue(item, this.iconAttr); 9 11 } 10 12 }}} 11 13 14 (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.)