Download .zip |
Info | Example | View files (9) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-03-26 (2 years ago) | Not yet rated by the users | Total: 56 | All time: 484 This week: 5 |
Version | License | JavaScript version | Categories | |||
js-render-tree 1.1 | BSD License | 1.5 | HTML |
Description | Author | |
This package can create and modify a tree view of page elements. |
The Tree and TreeServ JavaScript classes allow to create and change the tree structure front-end.
Call the script after the page load (see index.html):
>var tree = new Tree([opts]); >tree.Init([opts][,data]);
opts - the options object:
The default tree is created and first node is selected.
Click the node to select it. The selected node has gray background. Click selected node again to deselect. The commands to handle the tree:
The command buttons are available or disabled depending on the node selection.
Add and Edit commands switch you into the Change status. Type in the node name and press Enter to save. Or press Esc to cancel. Delete asks for confirmation if cfm option is true. Save command requires HTML5 localStorage support. The tree state is saved under localStorage.treeState. Restore loads the default tree if nothing is saved.
The index.html demo shell displays default tree with the command set. You can select another tree structure in the test.js. Assign the tree definition array to the treeData variable and include the script tag into index.html head.
The following files are included:
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.