yajra / laravel-datatables-editor

Laravel DataTables Editor Integration.
https://yajrabox.com/docs/laravel-datatables/editor-installation
MIT License
115 stars 14 forks source link

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

Closed pncontemplacion closed 5 months ago

pncontemplacion commented 4 years ago

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

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.