Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lorvent opened this issue Sep 6, 2024 · 1 comment
Open

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

lorvent opened this issue Sep 6, 2024 · 1 comment

Comments

@lorvent
Copy link

lorvent commented Sep 6, 2024

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
@yajra
Copy link
Owner

yajra commented Sep 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants