File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 5050 - [Whitelist Columns](/docs/laravel-datatables/{{version}}/whitelist)
5151 - [Set Total Records](/docs/laravel-datatables/{{version}}/set-total-records)
5252 - [With Trashed](/docs/laravel-datatables/{{version}}/with-trashed)
53+ - [Skip Paging](/docs/laravel-datatables/{{version}}/skip-paging)
5354- HTML Builder
5455 - [Builder](/docs/laravel-datatables/{{version}}/html-builder)
5556 - [Table](/docs/laravel-datatables/{{version}}/html-builder-table)
Original file line number Diff line number Diff line change 1+ # Skip Paging
2+
3+ To skip paging of ` Datatables ` , we can use ` skipPaging ` api or just set ` paging: false ` on our javascript.
4+
5+ ## Using PHP
6+ ``` php
7+ use Datatables;
8+
9+ Route::get('user-data', function() {
10+ $model = App\User::withTrashed()->query();
11+
12+ return Datatables::eloquent($model)
13+ ->skipPaging()
14+ ->make(true);
15+ });
16+ ```
17+
18+ ## Using Javascript
19+ ``` php
20+ $('#example').DataTable({
21+ serverSide: true,
22+ processing: true,
23+ ajax: '',
24+ paging: false
25+ });
26+ ```
You can’t perform that action at this time.
0 commit comments