First of all, you have to download the tree. The last version of it is available on SourceForge (just like the CVS, see the home page). This version is ZIP format only.
Here's what you need in the HEAD tag. Of course you have to take care of the paths.
|
|
Then you'll have to place the tree's parent element into the BODY tag.
|
|
It's very easy to define the structure. You just have to create a JSON object. This particular description allow you to obtain easily and quickly an array of objects representing the branches.
You can define the structure either in the HEAD or in the BODY. In this sample, we will call it in the BODY.
|
|
Tree's initialisation is made after the complete loading of the page. A method is automatically called when this event rise. It's the TafelTreeInit() method.
Just like the structure, you can define the structure either in the HEAD or in the BODY. In this sample, we will call it in the BODY
|
|
You can have a complete description of what you can put into the constructor here.
Download version v1.9.1
A complete documentation is available here
A Smarty module is developed for the tree. Thanks to Abalam! Module smarty
Treeview JS TafelTree
2007-07-23, Tafel. Optimised for Mozilla Firefox