Horje
datatables change width of columns Code Example
datatables change width of columns
$('#example').dataTable( {
  "autoWidth": false, // might need this
  "columns": [
    { "width": "20%" },
    null, // automatically calculates
    null  // remaining width
  ]
} );
datatable column width
columnDefs: [
            { width: 200, targets: 0 }
        ],
datatables change width of columns
Javascript
1
2
3
4
5
$('#example').dataTable( {
  "columnDefs": [
    { "width": "20%", "targets": 0 }
  ]
} );
datatable width column
table.display {
  margin: 0 auto;
  width: 100%;
  clear: both;
  border-collapse: collapse;
  table-layout: fixed;         // add this 
  word-wrap:break-word;        // add this 
}




Javascript

Related
format money javascript commas Code Example format money javascript commas Code Example
how to reload the same page using javascript Code Example how to reload the same page using javascript Code Example
js this binding setinterval Code Example js this binding setinterval Code Example
react native cover image in parent view Code Example react native cover image in parent view Code Example
javascript smooth scroll to anchor element Code Example javascript smooth scroll to anchor element Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7