-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for UI customizations #89
Comments
Here are my 2 cents on this: First of all, I don't think adding UI customization to the JSON schema is the right way
Secondly, I think a better approach would be to:
So the settings dictionary could be something like this:
Let me know what you think. |
I like what you've proposed and it's probably the better solution for styling. However, how do we customize only certain elements of the form, e.g. changing the display text of "Add item" or "Add key" buttons? To illustrate, you might have two arrays: one for "Animals" and other for "Birds". You might want to display "Add Animal" or "Add Bird" text on the respective add buttons. This seems possible only by keeping this info in the schema. |
That is a fair point. What I was primarily referring to is general/global styling which is what I understood from having that top-level "ui" key. For the JSON schema styling, it would be better to have style overrides at the property level. So each field type could look like: |
Any update on this? |
@Shivaank121 I'm currently doing a complete rewrite of this library. You'll be able to customize almost everything. It will have support for theming, plugins, etc. I haven't published the changes yet, but it'll take at least a month to ship a functioning version. |
Much appreciated! Thanks @bhch |
Features:
Possible Solution:
Creating a new keyword called
ui
for this purpose:Example:
The text was updated successfully, but these errors were encountered: