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
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
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