laravel-datatables-editor icon indicating copy to clipboard operation
laravel-datatables-editor copied to clipboard

Is there a way to resize the width of each column of datatable?

Open pncontemplacion opened this issue 5 years ago • 0 comments

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

pncontemplacion avatar Jun 03 '20 20:06 pncontemplacion