jquery-treeview

Lightweight and flexible transformation of an unordered list into an expandable and collapsable tree, great for unobtrusive navigation enhancements. Supports both location and cookie based persistence.

Usage no npm install needed!

<script type="module">
  import jqueryTreeview from 'https://cdn.skypack.dev/jquery-treeview';
</script>

README

Note that this project is not actively maintained anymore.

Check out jqTree for a more up to date plugin.

jQuery Treeview

Lightweight and flexible transformation of an unordered list into an expandable and collapsable tree, great for unobtrusive navigation enhancements. Supports both location and cookie based persistence.

Provides some options for customizing, an async-tree extension and an experimental sortable extension.

screenshot


Demo

Download

Changelog

Documentation

.treeview( options )

Takes an unordered list and makes all branches collapsable. The "treeview" class is added if not already present. To hide branches on first display, mark their li elements with the class "closed". If the "collapsed" option is used, mark initially open branches with class "open".

License

Copyright Jörn Zaefferer

Released under the MIT license: