laravel-datatables-editor
laravel-datatables-editor copied to clipboard
Is there a way to resize the width of each column of datatable?
Summary of problem or feature request
I am trying to resize columns of my datatable but it is not working.
Code snippet of problem
$('#laravel_datatable').DataTable({ processing: true, serverSide: true, autoWidth: false, ajax: "{{ url('postoffice-list') }}",
columnDefs: [{
targets: -1,
className: 'dt-center'
},
{
targets: 1,
width: '20px',
},
],
fixedColumns: true,
System details
- Operating System : Windows
- PHP Version 7.3
- Laravel Version 7.x
- Laravel-DataTables Version yajra/laravel-datatables:^1.5