Center texte with double header
Center texte with double header
ECEGROUPE
Posts: 78Questions: 29Answers: 1
Link to test case : https://live.datatables.net/piqukeje/5975/edit
As you can see, the first row of the double header isn't center (Test1 and Test2) but all other row are center,correclty why ?
I m using the basic code to center text inside datatable : "columnDefs": [{"className": "dt-center", "targets": "_all"}]
Thx for your time / answer
This question has an accepted answers - jump to answer
Answers
Datatables only applies the
columns.className
to the header row that it applies the sorting event handlers to. It doesn't do anything with the other header rows. You can apply the classname to theth
tag directly, like this:https://live.datatables.net/jisowogi/1/edit
Kevin