juicy-jsoneditor

WebJar for juicy-jsoneditor

License

License

MIT
Categories

Categories

JSON Data
GroupId

GroupId

org.webjars.bowergithub.juicy
ArtifactId

ArtifactId

juicy-jsoneditor
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

juicy-jsoneditor
WebJar for juicy-jsoneditor
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Juicy/juicy-jsoneditor

Download juicy-jsoneditor

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.juicy/juicy-jsoneditor/ -->
<dependency>
    <groupId>org.webjars.bowergithub.juicy</groupId>
    <artifactId>juicy-jsoneditor</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.juicy/juicy-jsoneditor/
implementation 'org.webjars.bowergithub.juicy:juicy-jsoneditor:1.2.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.juicy/juicy-jsoneditor/
implementation ("org.webjars.bowergithub.juicy:juicy-jsoneditor:1.2.0")
'org.webjars.bowergithub.juicy:juicy-jsoneditor:jar:1.2.0'
<dependency org="org.webjars.bowergithub.juicy" name="juicy-jsoneditor" rev="1.2.0">
  <artifact name="juicy-jsoneditor" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.juicy', module='juicy-jsoneditor', version='1.2.0')
)
libraryDependencies += "org.webjars.bowergithub.juicy" % "juicy-jsoneditor" % "1.2.0"
[org.webjars.bowergithub.juicy/juicy-jsoneditor "1.2.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar polymer#1.9 - 2
org.webjars.bowergithub.josdejong : jsoneditor jar [5.9.5,6)
org.webjars.bowergithub.starcounter-jack : json-patch jar [1.0.0,1.1)

Project Modules

There are no modules declared in this project.

<juicy-jsoneditor>

Published on Vaadin  Directory Stars on Vaadin Directory

Polymer Element that wraps josdejong/jsoneditor and adds two-way binding for edited JSON.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install juicy-jsoneditor --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill, if needed:

    <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/juicy-jsoneditor/juicy-jsoneditor.html">
    <!-- josdejong/jsoneditor#104 workaround-->
    <link rel="stylesheet" type="text/css" href="bower_components/jsoneditor/jsoneditor.min.css">
  3. Start using it!

    <juicy-jsoneditor></juicy-jsoneditor>

Options

Attribute Options Default Description
json Object {} JSON to edit. This could be object reference given via property or stringified JSON via attribute
mode String tree Editing mode, see API
modes Array of Strings List of editing modes to be available, see API
name String Object name, see API
search Boolean true Toggle search box, see API
indentation Number 2 Indentation, see API
history Boolean true Toggle history - undo, redo, see API

Properties

All attributes, plus:

Name Type Description
editor JSONEditor JSONEditor instance.

Methods

  • set,
  • setMode,
  • setName,
  • setText,
  • get,
  • getName,
  • getText

delegated to JSONEditor's methods

Events

Event event.details Description
change {action: "JSONEditor-action", params: {..} } Triggers when json changes.

Notes

Contributing and Development

History

For detailed changelog, check Releases.

License

org.webjars.bowergithub.juicy

Juicy

Take a sip of fresh and tasty Custom Elements.

Versions

Version
1.2.0