You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.
@Urbansson -
I would like to capture the changes when user edits the JSON. I used angular2 wrapper.
I'm unable to get the changes. Please let me know if i'm doing wrong -
<json-editor [options]="{mode: 'code',onChange: checkData()}" [data]="_jsoncode"> https://github.com/josdejong/jsoneditor/issues/373
Is there any two way binding. Please share your thought.
Thank you
Manu
The text was updated successfully, but these errors were encountered:
@mac4manu
I have tried to put this to options: this.editorOptions = { escapeUnicode: false, sortObjectKeys: false, history: true, mode: 'tree', search: true, indentation: 2, onChange: function() { alert(100); } };
And it is working, I see alert after change. I think in your example checkData() not available...
Issue can be closed.
@megastas
You can try this. It works for me @ViewChild('generatedConfig') generatedConfig: JsonEditorComponent; this.generatedConfig.getText(); // Will give you edited content inside onChange
Hope this helps
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@Urbansson -
I would like to capture the changes when user edits the JSON. I used angular2 wrapper.
I'm unable to get the changes. Please let me know if i'm doing wrong -
<json-editor [options]="{mode: 'code',onChange: checkData()}" [data]="_jsoncode">
https://github.com/josdejong/jsoneditor/issues/373
Is there any two way binding. Please share your thought.
Thank you
Manu
The text was updated successfully, but these errors were encountered: