juicy-jsoneditor

WebJar for juicy-jsoneditor

Лицензия

Лицензия

MIT
Категории

Категории

JSON Данные
Группа

Группа

org.webjars.bowergithub.juicy
Идентификатор

Идентификатор

juicy-jsoneditor
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

juicy-jsoneditor
WebJar for juicy-jsoneditor
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать juicy-jsoneditor

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

<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.

Версии библиотеки

Версия
1.2.0