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

update buttons.server-side.js to follow latest datatables

Open lorvent opened this issue 1 year ago • 1 comments

Summary of problem or feature request

Latest datatables doesn't use legacy dom option and doesn't require jquery too. so it is better to update this file with latest code standards.

Code snippet of problem

It's not a bug but when i am using bootstrap5 it doesn't align properly with search box. even pagination at bottom of table displays on left instead of right (when using normal datatables with bootstrap)

when using yaja datatables server side image

** when using regular datatables with bootstrap styling** image

System details

  • Operating System: Windows 11
  • PHP Version: 8.2.17
  • Laravel Version: 11.20.0
  • Laravel-DataTables Version: 11.1.5
  • Laravel-datatables-buttons version: 11.2.0

lorvent avatar Sep 06 '24 08:09 lorvent

I think the issue is not with the script but maybe with your dom defaults.

Try to review your HTML builder (https://github.com/yajra/laravel-datatables-buttons/blob/master/src/Generators/stubs/datatables.stub#L46) and ensure dom is not defined.

yajra avatar Sep 07 '24 01:09 yajra