Skip to content

develol/json-to-html-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>')
);