Answers for "width of datatable"

4

datatables change width of columns

$('#example').dataTable( {
  "autoWidth": false, // might need this
  "columns": [
    { "width": "20%" },
    null, // automatically calculates
    null  // remaining width
  ]
} );
Posted by: Guest on September-08-2020
0

datatables change width of columns

Javascript
1
2
3
4
5
$('#example').dataTable( {
  "columnDefs": [
    { "width": "20%", "targets": 0 }
  ]
} );
Posted by: Guest on November-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language