Providing Additional Buttons in JSON schema / ui-schema #4542
JackSharpe94
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe this is possible already - but i'm pretty new to the library, loving it so far.
We are going down the path of having a generic form component, which is ideally composed of a schema and ui-schema served as pure json from a rest api.
we plug into our own custom library and this works great as we can specify widget and fields and even override the submitButton with ui:SubmitButtonOptions.
This works well, but we have cases where we have cancel or back buttons on some forms and not others, other types of submit buttons (for example approve or reject)
at the moment I can make this work by specifying children props but it means i have to deviate slightly from the generic approach as i cant specify additional buttons from the schema.
it would be great to add additional action buttons via a registry much similar to the widgets and fields rather so that it could all be in the ui-schema rather than have to add children props.
If there is already a way do something like this I'm open to suggestions!
Beta Was this translation helpful? Give feedback.
All reactions