The library provides a vanilla bundle of the editor via the npm libraryvanilla-jsoneditor(instead ofsvelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or Angular, you'll need to write some wrapper code around the class interface. I...
// for use in a React, Vue, or Angular project import { JSONEditor } from 'vanilla-jsoneditor'If you want to use the library straight in the browser, use the provided standalone ES bundle:// for use directly in the browser import { JSONEditor } from 'vanilla-jsoneditor/standalone.js...
Hello jos, I think the commit 56e18ee caused this issue: cloydlau/json-editor-vue#95 Reproduction: import { JSONEditor } from '../../../lib/index.ts' let show = true
The library provides a vanilla bundle of the editor via the npm libraryvanilla-jsoneditor(instead ofsvelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or Angular, you'll need to write some wrapper code around the class interface. I...
// for use in a React, Vue, or Angular project import { JSONEditor } from 'vanilla-jsoneditor'If you want to use the library straight in the browser, use the provided standalone ES bundle:// for use directly in the browser import { JSONEditor } from 'vanilla-jsoneditor/standalone.js...
Vue example:https://codesandbox.io/s/svelte-jsoneditor-vue-toln3w Svelte usage Create a JSONEditor with two-way bindingbind:json: import{JSONEditor}from'svelte-jsoneditor'letcontent={text:undefined,// can be used to pass a stringified JSON document insteadjson:{array:[1,2,3],boolean:true...
Vanilla bundle (use in React, Vue, Angular, plain JavaScript, ...)The library provides a vanilla bundle of the editor via the npm library vanilla-jsoneditor (instead of svelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or ...