Adding properties to a cell after row.add()
Adding properties to a cell after row.add()
Comode
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
This discussion has been closed.
Replies
Have you tried using
columns.createdCell
?Allan
No i haven't... So I just tried, it works fine. Thank you very much for your help !