ember-cli-jsoneditor

0.2.0 • Public • Published

Ember CLI JSON Editor

npm version

This addon is an ember wrapper around JSON Editor.

Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 9+.

json editor   code editor

Documentation

Install

ember install ember-cli-jsoneditor

Usage

{{json-editor json=json onChange=(action (mut json))}}

Possible Options

  • ace
  • ajv
  • name: 'JSONEditor'
  • mode: 'tree'
  • history: true
  • search: true
  • disabled: true
  • indentation: 2
  • escapeUnicode: false
  • theme: 'ace/theme/jsoneditor'
  • modes: ['tree', 'view', 'form', 'text', 'code']

disabled is an option that is only supported for this addon. If set to true, it will set mode to view and modes to ['view'].

Possible Actions

  • onChange(json)
  • onError(err)
  • onModeChange(newMode, oldMode)
  • onEditable(node)

/ember-cli-jsoneditor/

    Package Sidebar

    Install

    npm i ember-cli-jsoneditor

    Weekly Downloads

    28

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    9.39 kB

    Total Files

    10

    Last publish

    Collaborators

    • offirgolan