A sophisticated Reagent wrapper around the jsoneditor library.
Add the following project dependency:
Requires that you have reagent and re-com as dependencies of your project:
If you use shadow-cljs, the jsoneditor npm library dependency will be pulled automatically via src/deps.cljs :npm-deps.
If you use another build system, it is not currently supported so switch to shadow-cljs.
Add JSON Editor stylesheet to your index.html or equivalent; e.g.:
https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.5.0/jsoneditor.css
(ns my-app
(:require
[re-jsoneditor.core :refer [jsoneditor]]))
(defn panel [] [jsoneditor ...])
-
ace and ajv customisation
-
port JSON editor stylesheet to inline Garden
-
:schemaand:schema-refsarguments -
:templatesargument -
:auto-completeargument -
:on-text-selection-changeargument -
:on-selection-changeargument -
:on-eventargument -
:on-focusargument -
:on-blurargument -
:color-picker?argument -
:timestamp-tag?argument -
:timestamp-formatargument -
:languageargument -
:languagesargument -
:modal-anchorargument -
:popup-anchorargument -
:sort?argument -
:transform?argument -
:max-visible-childrenargument -
:create-query,:execute-queryand:query-descriptionarguments -
:themeargument and auto-loading of ace themes etc.
The Apache License Version 2.0
Copyright © 2018-2021 Isaac Johnston
Portions based on JSON Editor Copyright © Jos de Jong under the terms of the Apache License Version 2.0