I have list of texts that are to be displayed inside a data-table using the MUI-Data-Table component but i am facing this problem of displaying not a single item in the column but a list of items. I have an item called system. It contains an array of countries so I want to display that array inside only one column but i don't know how to do it.
this is my json :
systeme:{
archived: 0
id: 1
nomSysteme: "Environnement Tn"
systeme_country: Array(1)
{
0: {id: 1}
length: 1
}
}
and this is how i customize my column because there is a certain pattern that i need to follow :
{
name: "titre",
label: "Titre",
options: {
filter: true,
sort: false,
}
},
{
name: "theme.systeme.systeme_country",
label: "Countries",
options: {
filter: true,
sort: false,
}
},
For more explanation the option name must be the same as in the json and it renders only one object but the theme.systeme.system_country is an array of countries's ids that i want to display but it won't let me i didn't know how to customize my columns to do such a thing or if there is a trick that i can do to make it happen