add classname or style css to a tree


I would like to know if I can add a “className” to a tree in javascript, no xml?

Or how can I add CSS to a tree?



If you want to change the style of the whole tree, you can redefine following classes from the dhtmlxtree.css:

.standartTreeRow {…}


The style of a certain item can be changed using setItemStyle(id,css_string) method.

OK, Thanks.