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

How define Global Parameters #104

Open
Raza-DG opened this issue Feb 14, 2024 · 1 comment
Open

How define Global Parameters #104

Raza-DG opened this issue Feb 14, 2024 · 1 comment

Comments

@Raza-DG
Copy link

Raza-DG commented Feb 14, 2024

'options' => [
'searching' => true,
'paging' => true,
'info' => false,
'language' => [
'sSearch' => '',
'searchPlaceholder' => 'Search',
'info' => 'START - END of TOTAL',
'sLengthMenu' => 'View MENU',
'paginate' => [
'next' => '',
'previous' => '',
],
],
],

config/datatable.php may i define in config file but is not work

@yajra
Copy link
Owner

yajra commented Feb 27, 2024

I suggest you do it via JS file. See https://github.com/yajra/laravel-datatables-vite/blob/main/js/index.js#L15 for ref.

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