objecttype ObjectField = {
label: string
name: string
type: 'object'
/** `fields OR `templates` may be provided, not both **/
fields?: Field[]
templates?: Template[]
/** See docs/reference/toolkit/fields for customizing the UI **/
ui?: object
}listNote: you can set
defaultItemto auto-populate new items as they're added
templatesIf you always want your object to have the same fields, use the fields property. But if an object can be one of any different shape, define them as templates.
Last Edited: July 27, 2021