Answers for "change the column 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

datatable giving default width to colums

$('#table_selector').dataTable( {
  "autoWidth": false, //<-------- add this
  //give custom width
  "columns": [
    { "width": "10%" },
} );
Posted by: Guest on July-13-2021

Code answers related to "change the column width of datatable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language