JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CSS Class for each node

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
shamsubhaidani



Joined: 27 Jun 2007
Posts: 2

PostPosted: Thu Jun 28, 2007 8:37 pm    Post subject: CSS Class for each node Reply with quote

Hi

I know that we can set a css style/class for each node level, but is it possible to set a class/style for each node.

Our scenario is based on the main level of the tree representing different departments. However each department has its own colour. I would like to have the corresponding colour of each department as the background for the level2 menu items.

We have only 2 levels on our menu.

thanks
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri Jul 06, 2007 5:58 am    Post subject: Reply with quote

You can do it like this:
Code:
['<span class="mySpecialClass">Item 1</span>', null, null],
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1