Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill value type text filed with string on certain event instead of user typing in the text field. #1537

Open
Laxmikantw opened this issue Jul 20, 2023 · 3 comments
Labels

Comments

@Laxmikantw
Copy link

First of all thank you for such a nice editor,

My use case is as below.
In react js,
I want replace the existing text in the value text filed (Not key side) on any event instead of user typing the text in text filed.
But I am unable to find such event where I can replace or insert text in the value text filed from any string variable.
can you please suggest the way how to achieve this.

Thanks in advance !!!

@josdejong
Copy link
Owner

Thanks.

I do not really understand what you try to do, sorry. Can you give an example or so?

@Laxmikantw
Copy link
Author

I want to autfill the text in the value field in the JSONEditor.
eg.
{
"name":_____
}

I have variable str = "john" and I want to autofill the value field for "name" key with "John" instead of typing.

In short,
While I am clicking in value field, one popup is appearing and I am selecting some string from that popup and I want to display/autofill that selected string in the respective value field in the jsonEditor.

@josdejong
Copy link
Owner

Ok I see what you're trying to do. Some ideas:

Docs: https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants