Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Abbie on Dec 10, 2009 18:43
open dhtmlx forum
dhtmlxTree XML Syntax

Hi,

Can someone show me where to find the specification for dhtmlxTree XML for populating the tree. In particular, what the elements and attributes represent and how to use them.

I'm having trouble displaying the images for my tree nodes, this may be due to my lack of understanding of how to set the im0, im1 etc. attributes in the xml file.

Thanks!
Answer posted by Alex(support) on Dec 11, 2009 00:50

Hello,

the xml structure for all components is http://www.dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/index.html

* im0 - the icon for a leaf node;
* im1 - the icon for an expanded parent node;
* im2 - the icon for a collapsed parent node;

Path to these images is set by setImagePath method. Please, see sample in the tree package dhtmlxTree/samples/09_initialization_general_settings/03_tree_init_xml.html