I have a data object that looks like this:
[{
'name': 'CEMC',
'document': '1596',
'amount': 3800,
'payments': [{
a1: ['29/06/2021', 1900],
a2: ['29/06/2021', 1900],
}],
}
....
],
How can I display the payments field on a single cell in multiple lines. Kind of like this:
| Document | Amount
| Payments
|
1596
| 3800
| 29/06/2021
| 1900
| 29/06/2021
| 1900
|
|
1597
| ...
| ...
|
How could I use a template that works recursively through the data object to achieve the examples result?
Could it be exported to Excel as well?
Thanks!