jQuery Horizontal Tree is a jQuery plugin for visualising data in a tree structure. This plugin supports add, edit, delete functionality with ajax and also supports drag and drop for re-organisation of nodes.
A plugin that allows you to render structures with nested elements in a tree structure. To build the tree you need is to just make a single line call to the plugin and set parameter and supply the HTML element Id for a nested unordered list element that is representative of the data you'd like to display.
Trees are usually used to store and represent data in some hierarchical order. The data are stored in the nodes, from which the tree is consisted of.
Here, In getting started, we demonstrates how to create a simple Tree and populate it with some data.
Thank you for purchasing jQuery Horizontal Tree. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thank you so much!
Include CSS & SCRIPT into HEAD section of the page.
Include HTML code into BODY section of the page.
These are default parameter. Each parameter has a default value as part of its definition. If no argument is sent for that parameter, the default value is used. you can override value of parameters as per your requirements.
I have mentioned below the description of each parameter.
default value is true.
We can add new node to the tree by clicking on add icon. Any name can be used to specify the node. Not only name we can use textarea for content or html code.
default value is true.
We can edit particular node by clicking on edit icon.
default value is true.
We can delete particular node with all child nodes by clicking on delete icon.
default value is true.
If by mistake click on delete icon then we have confirm message box before delete node.
default value is [true, 5].
Draw lines between nodes with animation on page load, we can increase or decrease animation speed.
default value is false.
If value is false then tree structure is set as per browser width, change this value with true then tree structure get full width if tree width is bigger then browser width then tree structure set with horizontal scroll.
default value is 'center'.
We can set align of tree structure with this option. options are left, right and center.
default value is true.
We can perform a drag-and-drop operation with tree nodes. We drag the tree node which we want to move and then drop the dragged node on the destination node. The dragged node will now bound to the destination node.
Click here for download demo with PHP, Mysql and Ajax
Put downloaded folder in your system local php server[maybe it is htdocs]. Now create blank database in phpmyadmin & import tree.sql[tree.sql is located in demo_php_ajax folder]
Note : Blank database name must be tree.
Open db.php and edit mysql connection with your database username and password.
Now ran index.php
jQuery and Google and iconfinder.com