Closed Industrial closed 8 years ago
Hi,
You can use the fields
option for structs and the item
option for lists, at arbitrary levels of nesting
const options = {
fields: { // first level of nesting (EmployeeSchema struct)
experience: {
item: { // second level of nesting (list of ExperienceSchemas)
fields: { // third level of nesting (ExperienceSchema struct)
shortDescription: {
type: 'textarea' // Textarea input
}
}
}
}
}
}
Aaah sorry, I must have misread. Thanks!
Hi.
In my case I have a resume form with;
How do I pass options to the
<Form options={{x: y}}>
that allow me to customize fields in a sub-schema?Right now the options
{ fields: { experience: { shortDescription: { type: 'text' } } } }
doesn't seem to do it.Thanks!