Initialize Tree from HTML
To do automatic conversion:
- Add dhtmlXTree_start.js file into the page
- Set class attribute of the top div element to dhtmlxTree
- Set some attributes defining tree-specific properties of the top div element
- setImagePath - sets path to tree's image files
- id - name of javascript variable referred to the tree object
Initilize from list
- Root
- Child1
- Child2
- Bold Italic
|
- Root
- Child1
- Child2
- Bold Italic
|
Initialize from inline XML structure
It is possible to use standard dhtmlxTree XML structure enclosed in XMP tag inside div element which is a tree container.
-
-
Initialize from HTML using script command
It is possible to convert existing html structure calling an appropriate script command. To test it press the Confirm button.
- Root
- Child1
- Child2
- Bold Italic