11 Sep 2010 1:16 PM #1
Tree Nodes - Top level nodes have accordion style, different from sub-level nodes
I have a tree I'd like to style such that top level nodes look something like an accordion, but of course, multiple top nodes may be opened at the same time, like a tree.
Sub nodes would look like typical nodes, maybe with custom icons but completely unlike top level nodes.
Anything special about top level nodes that would automatically allow this to happen or do I need to detect top level nodes when I read in the json in the tree-loader and give those nodes a completely different background css class?
Not sure where to start. Dont' want to use an accordian and multiple trees; seems like that will just totally get out of hand.
Any clues appreciated, or examples of styled custom tree nodes, thx
12 Sep 2010 8:30 AM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
Give your top level nodes a specific cls and write css rules to give the nodes with this class a accordion type look.
By gopanothera in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 18 Aug 2010, 7:42 PM
By Elijah in forum Ext 3.x: Help & DiscussionReplies: 11Last Post: 20 Apr 2010, 2:12 PM
By denizkaan in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 27 Sep 2009, 6:15 PM
By Kishan.Srinivas in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 13 Mar 2009, 4:00 AM
By zeroed in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 4 Aug 2008, 1:27 AM