row.add() cell class
row.add() cell class
CrazyYann
Posts: 9Questions: 1Answers: 0
Hey everybody,
with the fnAddTr plug-in it's easy to define a class for a cell but this plug-in has been deprecated.So i try to do the same things with the row.add method. In this example, how to add a class to the cell called ''position''?
var table = $('#example').DataTable();
table.row.add( {
"name": "Tiger Nixon",
"position": "System Architect"
} ).draw();
Thanks for responding.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Do you want the class only on the one cell, or the entire column of 'position'?
Only on the one cell. The cell of the new row i'd just added with the row.add method.
Thanks for responding so quickly.
Thank you very much.