All Projects → pioz → jquery-tree

pioz / jquery-tree

Licence: LGPL-3.0 license
jQuery-tree is a jQuery plugin to make an HTML unorder list (ul) in a tree.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jquery-tree

natural js
Natural-JS : Javascript Front-End Architecture Framework
Stars: ✭ 35 (+20.69%)
Mutual labels:  jquery-plugin, tree
Gijgo
Gijgo - Free Javascript Controls
Stars: ✭ 424 (+1362.07%)
Mutual labels:  jquery-plugin, tree
Fancytree
JavaScript tree view / tree grid plugin with support for keyboard, inline editing, filtering, checkboxes, drag'n'drop, and lazy loading
Stars: ✭ 2,398 (+8168.97%)
Mutual labels:  jquery-plugin, tree
Liteaccordion
A lightweight horizontal accordion plugin for jQuery.
Stars: ✭ 234 (+706.9%)
Mutual labels:  jquery-plugin
Ajax Live Search
AJAX Live Search is a PHP search form that similar to Google Autocomplete feature displays the result as you type.
Stars: ✭ 238 (+720.69%)
Mutual labels:  jquery-plugin
RedisTree
Redis Tree (Ploytree) Structure Module
Stars: ✭ 64 (+120.69%)
Mutual labels:  tree
Modern.JS
모던 자바스크립트 라이브러리/프레임워크 × KIPFA(한국인터넷전문가협회)
Stars: ✭ 16 (-44.83%)
Mutual labels:  jquery-plugin
Jquery Multiselect
Turn a multiselect list into a nice and easy to use list with checkboxes.
Stars: ✭ 221 (+662.07%)
Mutual labels:  jquery-plugin
scalem
A jQuery plugin to make any element scalable (responsive).
Stars: ✭ 33 (+13.79%)
Mutual labels:  jquery-plugin
codacy-scalameta
Codacy tool for Scalameta
Stars: ✭ 35 (+20.69%)
Mutual labels:  tree
vicopo
API HTTP et Script pour trouver les villes à partir d'un code postal et code postaux à partir d'une ville
Stars: ✭ 27 (-6.9%)
Mutual labels:  jquery-plugin
Ziptastic Jquery Plugin
This is a jQuery plugin that shows how Ziptastic could be used.
Stars: ✭ 244 (+741.38%)
Mutual labels:  jquery-plugin
data-structure-project
自己实现集合框架系列整理总结
Stars: ✭ 29 (+0%)
Mutual labels:  tree
Jquery Viewer
A jQuery plugin wrapper for Viewer.js.
Stars: ✭ 235 (+710.34%)
Mutual labels:  jquery-plugin
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+1500%)
Mutual labels:  tree
Roundslider
roundSlider - A free jQuery plugin
Stars: ✭ 232 (+700%)
Mutual labels:  jquery-plugin
react-vertical-tree
Simple & lightweight vertical tree like view.
Stars: ✭ 23 (-20.69%)
Mutual labels:  tree
mst-persist
Persist and hydrate MobX-state-tree stores (in < 100 LoC)
Stars: ✭ 75 (+158.62%)
Mutual labels:  tree
ferris-wheel-jquery-plugin
A jquery plugin that adds a cool button to your web page.
Stars: ✭ 13 (-55.17%)
Mutual labels:  jquery-plugin
table2csv
A simple jQuery plugin to convert HTML tables to CSV
Stars: ✭ 32 (+10.34%)
Mutual labels:  jquery-plugin

jQuery-tree

jQuery-tree is a jQuery plugin to make an HTML unorder list (<ul>) in a tree.

The state of the tree expansion will be saved in a cookie. To enable this feature include the jQuery cookie plugin (http://plugins.jquery.com/project/Cookie).


See the example at http://pioz.github.com/jquery-tree/index.html


USAGE:

You can make an UL in a tree with: $('ul').tree();

Avaiable options are:

  • open_char: defeault UTF8 character on open node.
  • close_char: defeault UTF8 character on close node.
  • default_expanded_paths_string: if no cookie found the tree will be expanded with this paths string (default '') To expand all branches use 'all'. To collapse all branches use ''. To expand the first child and the second child of the first child use '0/1'
  • only_one: if this option is true only one child will be expanded at time (default false)
  • animation: animation used to expand a child (default 'slow')

You can bind a click event to expand/collapse a branch by adding the class 'jtree-button' on a tag inside the branch.

You can call the method 'expand(animation)' or 'collapse(animation)' to expand or collapse the tree. Animation can be null to use default animation, 'none' to not use animation.

To save the state of the tree expansion when there are many trees in the same page, you have to specify a cookie key different for every tree. To do this add the data attribute data-cookie="unique-key" to UL tag.


Questions or problems? If you have any issues please add an issue on GitHub or fork the project and send a pull request.


Copyright © 2012 Enrico Pilotto (@pioz).

Contributors:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].