how set html5 data-data attributes get a array
how set html5 data-data attributes get a array
a7262619
Posts: 1Questions: 1Answers: 0
HTML
<th data-data="rankPositions[1].score">score </th>
jsonData
rankPositions: [
{
score: 102,
position: 0.25
},
{
score: 94,
position: 0.5
},
{
score: 84,
position: 0.75
}
],
This discussion has been closed.
Answers
That would get array index 1 from the rankPositions array and then access its
score
property.How do you want to display that data?
rankPositions[, ].score
would show it as a comma separated list. Seecolumns.data
for details.Allan