Get row data as array with column reader as field name
Get row data as array with column reader as field name
suporte@jung.com.br
Posts: 4Questions: 2Answers: 0
Hi!
I'm trying to get data of cells to array with var data = table.rows(['.selected']).data().toArray();
but i want an array with fields name as column header.
Anyone can help me?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
In this example http://jsbin.com/lacaqeb/222/edit , I create the columns separately before my datatables, then work through it on the selected rows.
Note that, as shown on this example, if you use the title option it overrights the <th> value.
Thanks!