add sclass based on data
add sclass based on data
jacobruvalcaba
Posts: 10Questions: 6Answers: 0
Really simple question can I do something like this on columns
{ data: 'id' },
{ data: 'test','sClass': { data: 'id' }, },
..
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
or another workaround so my class has the id?
Thanks
You can use the
DT_RowClass
property to have DataTables automatically add a class to a row (documentation - that page is about server-side processing, but theDT_RowId
, etc, parameters will work for client-side processing as well).If you need the class to be added to a cell use
columns.createdCell
orrowCallback
.Allan
Thanks allan. Sorry for the late response