How to add new row with cell which contain "data-filter" attribute
How to add new row with cell which contain "data-filter" attribute
Dimetrius
Posts: 7Questions: 2Answers: 0
Hi,
I add new row this way
myTable.rows.add([{"0":"field one","1":"field two"}]).draw().sort();
How can I add attribute "data-filter" for last cell?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There are basically two options:
columns.createdCell
tr
element yourself and pass it in torows.add()
.Allan
Thank you Allan, this works!