You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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