| Sample: dhtmlxTree | Setting path in tree | dhtmlxTree main page |
Tree supports representation of a path between two nodes: a parent and a child.
Path can be set in xml or added by the script. Try to select any two radio buttons in tree and then press "set path" button.
tree.addPath(start,end,{color:"blue", width:3},"new"); tree.deleteAllPaths(); =============================XML============================= <?xml version='1.0' encoding='iso-8859-1'?> <tree id="0"> <item text="Books" id="books" ...> <pathstart id="path1" color="red" width="3" mode="dashed"/> <item text="Mystery & Thrillers" id="mystery" ...> ... <item path_end="path1" text="Digital Fortress" id="db_3" ...> <pathend id="path1" /> </item> ... </item> <tree>
| © DHTMLX LTD. All rights reserved |