Closed Aleks4ndarS closed 1 year ago
Please try number.0.type
and references.reference.0.id
Please try
number.0.type
andreferences.reference.0.id
Thanks for your quick answer. Sorry I forgot to write that I've tried that, also tried various syntaxes and nothing seems to read the data.
@nzbin Also another thing that I've noticed is that if the element is nested for example owner.action
in that case the sorting of the column is not working, so the element must be on first level. Can u share your thoughts on this one too? Thanks.
About the first problem this would be a good solution in case someone needs it:
const transformed = response.map(el => {
el['number'] = el['number'][0];
return el;
});
It's very difficult to sort nested array. Maybe you can flat the array if you need sort.
Thank you for your answer. P.S. I didn't have the time to write that you are doing great job with the theme. Keep up the good work!
Hi I'm having problem displaying nested array of objects in the mtx-table,
This is my data:
this is my mtxColumn:
I'm having issue with the display of the Type field:
"number[0].['type']"
. Since I didn't come to a similar problem anywhere, can someone describe me how to display this. Also it would be helpful for thereferences reference.id
to share some ideas.Thanks in advance.