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
When you add a UI Control for a complex object, the default behaviour is to wrap the UI with a Group or VerticalLayout.
When extra props are added to customize the behaviour for this Layout Renderers, these are not available in the Customize Group or VerticalLayout Renderer.
Expected behavior
I would expect all props that are set in the uischema to be propagated to the Layout renderer as well.
Steps to reproduce the issue
Add a custom Group Renderer that checks for the existence of an additional property test on the uischema
Add a Control to the layout for a compound object property and add this additional test property.
notice that the form for the object is rendered as a group, but the custom Group renderer is not being used, although the test property was available on the uischema of the object Control.
I setup a custom Object Renderer wit higher priority to do this, but I would suggest to consider this adding it to core behaviour (not only for Group Layouts, but also for VerticalLayout and other renderers and frameworks)
The text was updated successfully, but these errors were encountered:
Hi @Sewdn , thank you for the suggestion. I will discuss with the team whether that is something we want to support. Usually, props of UI Schema elements themselves are not propagated down. A specific detail schema for an object can also be provided by using the uischemas prop of JsonForms.
Describe the bug
When you add a UI Control for a complex object, the default behaviour is to wrap the UI with a Group or VerticalLayout.
When extra props are added to customize the behaviour for this Layout Renderers, these are not available in the Customize Group or VerticalLayout Renderer.
Expected behavior
I would expect all props that are set in the uischema to be propagated to the Layout renderer as well.
Steps to reproduce the issue
test
on the uischematest
property.test
property was available on the uischema of the object Control.Screenshots
No response
Which Version of JSON Forms are you using?
v3.2.1
Framework
React
RendererSet
Material
Additional context
Just spreading all of the uischema props, fixes this:
jsonforms/packages/material-renderers/src/complex/MaterialObjectRenderer.tsx
Line 60 in bb7a255
I setup a custom Object Renderer wit higher priority to do this, but I would suggest to consider this adding it to core behaviour (not only for Group Layouts, but also for VerticalLayout and other renderers and frameworks)
The text was updated successfully, but these errors were encountered: