Replies: 1 comment
-
|
Other features that have been requested that will need to wait for v2:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at building V2 of this component in the next wee while, so keen to get some user feedback before I dig into it, mainly around the workflow and syntax. Here's a few things I think would be good to change for V2, so please let me know your thoughts on them, or any other suggestions.
(Note, I'm not particularly looking for "feature requests" (make an issue for those), more improvements to the current functionality to make it easier to use or more logical)
trueto disallow editing, andfalseto allow it. Thinking of changing the name fromrestrictEdittoallowEdit, where atrueresult means you can do the edit.isValidproperty to each node, which can be set via Update functions. This would allow you to show an "error" in the UI when invalid values are entered, as opposed to now when invalid values would either have to simply be rejected or accepted.true|void|undefined=> proceed with the updatefalse=> don't update (displays generic error message){ value?: <some value>, isValid?: <bool>, error?: <error message> }=> Use "value" as the updated data, display "error" as message (can use either one, or both of these), "isValid" sets internalisValidstate, which would display a different kind of warning.JsonViewercomponent -- this would be exactly the same asJsonEditorexcept all the editing capabilities will be disabled (same as passingviewOnlytoJsonEditor)Beta Was this translation helpful? Give feedback.
All reactions