Skip to content

JSONEditor can now be used as a controlled componentΒ #3

Open
@josdejong

Description

@josdejong

@manico I think you will like the latest releases of the jsoneditor: since v5.20.1 the editor supports being used a controlled component in a framework like React or Vue. There are two new methods update(json) and updateText(text) for this, and two new callback methods onChangeText and onChangeJSON (checkout the docs for details).

You can find two React examples in the examples folder for inspiration:

https://github.com/josdejong/jsoneditor/tree/master/examples/react_demo
https://github.com/josdejong/jsoneditor/tree/master/examples/react_advanced_demo

Would that be interesting for the vue-jsoneditor component as well?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions