INNER CODE UNIT · TypeScript

Tree

zhenorzz/goploy · web/src/components/JSONTree/index.ts:695

  function Tree(jsonObj, domEl) {
    this.wrapper = document.createElement('ul')
    this.wrapper.className = 'jsontree_tree clearfix'

    this.rootNode = null

    this.sourceJSONObj = jsonObj

    this.loadData(jsonObj)
    this.appendTo(domEl)
  }

  Tree.prototype = {
    constructor: Tree,

    /**
     * Fill new data in current json tree
     *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…