Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by rohin on Mar 19, 2009 00:39
open dhtmlx forum
Customizing Tree images

Is it possible to customize the images for the nodes of a tree. I want to use different images for different tree node.
Answer posted by Alex (support) on Mar 19, 2009 07:48

Yes, it is possible. 

It can be done

- in the xml by im0, im1 and im2 attributes:

..<item id=".." text="..." im0="..." im1="..." im2="..."  ...>..

- by the script:

tree.insertNewNext(itemId,newItemId,itemText,itemActionHandler,image1,image2,image3);