Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stephen on Jun 01, 2009 01:21
open dhtmlx forum
dhtmlxTree loadXML color

In tree sample Appearance -> Dynamical icon/text/style changing
you can set a tree item's color (using I assume tree.setItemColor)

But how do you set the a tree item's color from XML? I tried <item ... color='red' but this does not work.
Answer posted by Support on Jun 01, 2009 05:23
You can use

<item id="some" text=" text here" aCol="red" sCol="blue"

where aCol - color of item in normal state, and sCol - color of item in selected state. 

Also, you can use @style, which can contain any css rules for related item

<item id="some" text=" text here" style="color:red;"