You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an anyOf array that is used to render a dropdown list. Now I want to change the order of the list elements with ui.schema (we cant change the actual json-schema files, they come from somewhere else). How can I do this?
@perelin There is currently no way to do it with uiSchema. You can, however, do it with either a custom widget or custom field, depending on how many fields you are dealing with.
Thanks for the reply @heath-freenome! We are using rjsf as it is provided by https://retool.com. Custom components would defeat the purpose of using a tool like retool. We might just do some processing on the schema file itself.
@perelin Ah I see. I've used retool in the past. So, yeah, it sounds like that is the best approach. Please close the issue if you feel like you have your answer
Prerequisites
What theme are you using?
core
What is your question?
I have an anyOf array that is used to render a dropdown list. Now I want to change the order of the list elements with ui.schema (we cant change the actual json-schema files, they come from somewhere else). How can I do this?
Example:
How can I reorder them to eg [op3, op1, op2]?
Thanks!
The text was updated successfully, but these errors were encountered: