how set html5 data-data attributes get a array

how set html5 data-data attributes get a array

a7262619a7262619 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
}
],

Answers

  • allanallan Posts: 63,799Questions: 1Answers: 10,514 Site admin

    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. See columns.data for details.

    Allan

This discussion has been closed.