3.0.0 • Published 6 years ago

jsontreejs v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

jsonTree

A lightweight vanilla Javascript micro-library for making collapsible trees with JSON

usage

jsonTree.init(object, selector, depth);

Because jsonTree uses document.querySelector(selector), selector can either be an ID or class, just be sure to specify with the proper identifier (. for class and # for ID).

"depth" is a boolean which decides if jsonTree should apply a class to all children elements ("depth-#"). This can be used for custom styling but may increase loading times.

The JSON object must be a valid JavaScript object or a properly formatted URL(http://, etc), as XMLHttpRequests are annoying that way.

3.0.0

6 years ago

1.6.1

7 years ago

2.0.0

7 years ago

1.6.0

7 years ago

1.5.1

8 years ago

1.5.0

9 years ago

1.4.2

9 years ago

1.4.0

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.0.0

9 years ago