custom form layout #1537
Unanswered
captHarlock69
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use the LayoutElementParser to customize nested data. If we take as an example the Complicated model int the adminjs-example-app the following works:
actions: [ { name: 'show', layout: [ ['@Header', { children: 'basic data'}], [ { flexDirection: 'row', flex: true }, ['name', {flexGrow: 1}], ['stringArray', {flexGrow: 1}], ['authors', {flexGrow: 1}], ], ['@Header', { children: 'basic nested data'}], [ { flexDirection: 'row', flex: true }, ['nestedDetails.age', {flexGrow: 1}], ['nestedDetails.height', {flexGrow: 1}], ['nestedDetails.placeOfBirth', {flexGrow: 1}], ], ['@Header', { children: 'follows nested stuff'}], ['items'] ] }]
but I would like to render each row of the items nested array within this structure without having to write a custom component.
Is it possible ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions