Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable giving default width to colums

$('#table_selector').dataTable( {
  "autoWidth": false, //<-------- add this
  //give custom width
  "columns": [
    { "width": "10%" },
} );
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #datatable #giving #default #width #colums
ADD COMMENT
Topic
Name
9+7 =