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

Feature request -- trigger for JSON editor #138

Open
tony-gutierrez opened this issue Dec 18, 2024 · 3 comments
Open

Feature request -- trigger for JSON editor #138

tony-gutierrez opened this issue Dec 18, 2024 · 3 comments
Labels
user request Requested by user

Comments

@tony-gutierrez
Copy link

A common use case is probably to initially paste in a chunk of json, and then edit it in the editor.

There is an edit button next to root that goes to a nice textarea for pasting in JSON. I would like to be able to trigger that view externally with my own button.

Currently I workaround by using tabs, one with the editor and one with my own textarea.

@CarlosNZ
Copy link
Owner

Good suggestion, thanks. It would have to be a single trigger for only the outermost/root JSON editor, right?

@CarlosNZ CarlosNZ added the user request Requested by user label Dec 18, 2024
@CarlosNZ CarlosNZ changed the title Feature request Feature request -- trigger for JSON editor Dec 18, 2024
@tony-gutierrez
Copy link
Author

tony-gutierrez commented Dec 18, 2024 via email

@CarlosNZ
Copy link
Owner

Would need to do something like this:

https://www.geeksforgeeks.org/how-to-call-function-inside-child-component-from-parent-component-using-useref-hook/

Just putting that here as a note to self.

There's been another request for an external trigger for something else (can't remember what right now), so I'll probably do this with a range of internal functions that can be triggered via a single prop.

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

No branches or pull requests

2 participants