Ember CLI JSON Editor
This addon is an ember wrapper around JSON Editor.
Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 9+.
Documentation
- Documentation:
- Examples
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)