jQuery treeTable Plugin Documentation
Multiple droppables
This example uses the jQuery UI components Draggable and Droppable to create a tree that can be manipulated by dragging and dropping of the nodes. You can drag a node by clicking on it's title and drag it to a different position. This behavior requires a bit more coding than the simple trees above, but it is still pretty straight-forward. The code for this example is listed below. The most interesting line in this code, from the plugin's point of view is $($(ui.draggable).parents("tr")).appendBranchTo(this);. Here the appendBranchTo function is called to move the selected branch to a new location.
| Title |
Size |
Kind |
| doc |
-- |
Folder |
| images |
-- |
Folder |
| bg-table-thead.png |
52 KB |
Portable Network Graphics image |
| folder.png |
4 KB |
Portable Network Graphics image |
| page_white_text.png |
4 KB |
Portable Network Graphics image |
| index.html |
4 KB |
HTML document |
| javascripts |
-- |
Folder |
| jquery.js |
56 KB |
JavaScript source |
| stylesheets |
-- |
Folder |
| master.css |
4 KB |
CSS style sheet |
| MIT-LICENSE |
4 KB |
Plain text |
| README.markdown |
4 KB |
Markdown document |
| Title |
Size |
Kind |
| src |
-- |
Folder |
| images |
-- |
Folder |
| bullet_toggle_minus.png |
4 KB |
Portable Network Graphics image |
| bullet_toggle_plus.png |
4 KB |
Portable Network Graphics image |
| stylesheets |
-- |
Folder |
| jquery.treeTable.css |
4 KB |
CSS style sheet |
| jquery.treeTable.js |
8 KB |
JavaScript source |