Adding properties to a cell after row.add()

Adding properties to a cell after row.add()

ComodeComode Posts: 7Questions: 2Answers: 0

Hello,

I saw a lot of similar question, but can't make it work...

i've something like :

var t = $("#mvu_table").DataTable(); // 3 columns array with header
t.clear();
for(var ar in datas.result)
   t.row.add([datas.result[ar].date, datas.result[ar].session, datas.result[ar].id]);
t.draw();

I'd like to add a data-info attributes to the third cell of the row.
How should i process ? Does row.add can accept object to set it ?

Thx in advance

Replies

This discussion has been closed.