I have a table that I was filling it with jquery(html). In order to limit displaying rows I have been trying to change this table to datatables.
I have this kind of data:
dataArray = [{
id: 1,
props: {
abc: 123,
def: 456,
ghi: 789
},
features: {
zxc: 01,
cvb: 02,
nmn: 03
}
},
{
id: 2,
props: {
abc: 002,
def: 258,
ghi: 965
},
features: {
zxc: 52,
cvb: 21,
nmn: 75
}
},
{
id: 3,
props: {
abc: 352,
def: 365,
ghi: 778
},
features: {
zxc: 21,
cvb: 45,
nmn: 03
}
},
]
Lets say, I would like to display id, abc(from props), zxc(from features).
I tried to use in datatable by converting JSON but it didnt work. I am not sure how I can display this data on the datatable.
This dataArray is updated inside of the app, it is not external data.
Could you help me please?