Skip to content

darekwalega/abixTreeList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abixTreeList

JQuery plugin to create treeview from HTML list

Usage

Include the jQuery library:

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>

Include the js and css files from js and css folders:

<script src="js/abixTreeList.min.js"></script>
<link href="css/abixTreeList.css" rel="stylesheet">

Include the Twitter Bootstrap css file:

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">

Create html list like this:

<ul id="tree">
  <li>one</li>
  <li>two
    <ul>
      <li>two - 1</li>
      <li>two - 2</li>
      <li>two - 3</li>
    </ul>
	</li>
  <li>three</li>
</ul>

Initialize plugin:

$(document).ready(function() {
  $('#tree').abixTreeList();
});

Options

Change icons:

$(document).ready(function() {
  $('#tree').abixTreeList({
    collapsedIconClass  : 'myicon-plus',
    expandedIconClass   : 'myicon-minus'
  });
});

Demo

Example usage in file: demo.html. Live demo

About

JQuery plugin to create treeview from HTML list

Resources

License

Stars

Watchers

Forks

Packages

No packages published