-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Error Validation #476
Comments
This is not supported at the moment. The JSON viewer itself supports passing a custom However, editor props do not contain Lines 65 to 70 in 0a1bcac
Based on this, we can add |
Thank you for your response, will test this out :) |
I will prepare a demo after #498 is merged. |
Please check this demo with the input validation. I provided two implementations with different strategies. But this example is not perfect because the library does not provide a way to fully control the editing process. Users can still click the ✓ to submit changes. I would suggest you use the commented way I left in the demo to disallow any invalid input. |
Reopen since the library might need to have a way to do the checking before submitting the changes. |
Hello, is there a way to implement custom error messages/validation for fields that are empty or expect a number, but string is passed for example? In the READ.me there is not mention, so just in case, wanted to ask here.
The text was updated successfully, but these errors were encountered: