Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 496 Bytes

README.md

File metadata and controls

23 lines (22 loc) · 496 Bytes

json-to-html-tree

[JavaSctipt] A class for creating an adaptive HTML tree from JSON
Example

Getting started

  1. Cloning this repository
  2. Connecting a JSONtoHTMLTree.js
  3. Creating an instance of a class
let tree = new JSONtoHTMLTree(
  // {
  //   classPrefix: 'tree-creator',
  //   tagContent: 'input'
  // }
);
  1. Initializing tree
tree.init(
  '<json>', 
  document.getElementById('<id_element>')
);