The class option no longer applies to TH cells in thead
The class option no longer applies to TH cells in thead
redfellow
Posts: 13Questions: 6Answers: 0
Link to test case: https://live.datatables.net/xecaxaxa/1/edit
Description of problem: I'm migrating from DataTables 1.x and noticed that the class option no longer applies to thead cells. Can this be achieved somehow with 2.x?
Replies
I don't see an option
columns.class
in the docs so not sure what is expected. There is acolumns.className
that applies the class to thethead
,tbody
andtfoot
. Updated test case:https://live.datatables.net/xecaxaxa/2/edit
Kevin
Ah, maybe the "class" option is something old and deprecated. It did work in my test case for tbody and it worked for both in 1.x.
I'll update my code
Ah -
class
would have worked as a happy accident because of the Hungarian notationsClass
from way back in the day. The translator will have picked upclass
as a match for that. Mildly surprised that it has changed for 2, but yes, usecolumns.className
.Allan