jdorn / json-editor

JSON Schema Based Editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to collapse keys on jsonEditor widget!

ParasAvkirkar opened this issue · comments

  1. I am creating the container for jsonEditor through jQuery
  2. Initialising jsonEditor instance with the container "Element" and options
  3. Attaching the element to my DOMTree
    var divHolderTrim = createJsonDivHolder(); divHolderTrim.setAttribute("id", "jsonEditor"); var options = {"expand_height": true, "disable_collapse": false}; editor = new JSONEditor(divHolderTrim, options); editor.set(jsonData); editor.expandAll();