Table header width not according to the text

Table header width not according to the text

oscarho96oscarho96 Posts: 2Questions: 1Answers: 0
edited July 2021 in DataTables 1.10

Is possible can make the table header auto fit according to the title with one line ?

This is my databale config
oTable = $('.dataTable').DataTable({
"serverSide": true,
"processing": true,
"searching": false,
"order": [[0, "desc" ]],
"scrollX": true,
"ajax":{
url : 'member/getDataTable?'+$('form').serialize(),
type: 'POST'
},
});

I tried the sample below but is not working too.
https://datatables.net/extensions/fixedcolumns/examples/initialisation/size_fluid.html

Thank You.

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.