Custom Templates with Pure JSON UI Schema #4523
-
I have a case where i want to be able to specify the template for an object only for certain objects. We fetch our schema and ui-schema back from a database. looking at the docs i can see you can use "ui:ObjectFieldTemplate": "mycustomcomponent" to specify this. and i've used similar (ui:widget) for custom widgets before e.g. pass in to the widgetProp on the Form component the names of the widgets and corresponding component it maps too. our schemas can have nested objects, so one object may require a different ui template to another. for fields and widgets i am able to specify components that map to the name in the schema but for the templates i can't see a way in docs to do that? Is this correct or am I misunderstanding/ missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @JackSharpe94. Sorry for the slow reply. Right now, you are correct that per field templates don't currently work. We have a new feature being added in #4352 that would enable this for you. Hold tight for a few weeks and hopefully we'll get this merged. |
Beta Was this translation helpful? Give feedback.
Hi @JackSharpe94. Sorry for the slow reply. Right now, you are correct that per field templates don't currently work. We have a new feature being added in #4352 that would enable this for you. Hold tight for a few weeks and hopefully we'll get this merged.