Answers for "datatable width not change"

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
1

datatables adjust column width when modal show up

$('#ASBresultsModal').on('shown.bs.modal', function () {
   var table = $('#example').DataTable();
   table.columns.adjust();
});
Posted by: Guest on June-04-2021

Code answers related to "datatable width not change"

Code answers related to "Javascript"

Browse Popular Code Answers by Language