How to use form composition ui component blocks for subfields
I follow examples and its straightforward and nice to be able to reuse declare field components, like field.TextField etc, but in the example again, its not certain how to use those ui components for subfields when form has array fields.
this will get whole field and not subfields, I tried to pass FieldApi as param but it'll create a lot of generic type thing.
So my question is how should I use ui components i registered for composition in array subfields
2 Replies
generous-apricot•5mo ago
Depends on what you want to do.
1. You want to have the field component of string for arrays
Solution: Combine AppFields with the array mode. On each field, you can add your custom field component.
2. You have an object and want a custom field component combining the subfields
Solution: Fields are not restricted to primitive types.
quickest-silverOP•5mo ago
nice, i didn't think this, thanks