Skip to content

Commit ef0425d

Browse files
committed
Add debugging
1 parent 7117c28 commit ef0425d

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

resources/views/bootstrap-4/datatable.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@endif
1414
class="container-fluid p-0"
1515
>
16+
@include('livewire-tables::includes.debug')
1617
@include('livewire-tables::bootstrap-4.includes.offline')
1718
@include('livewire-tables::bootstrap-4.includes.sorting-pills')
1819
@include('livewire-tables::bootstrap-4.includes.filter-pills')

resources/views/bootstrap-5/datatable.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@endif
1414
class="container-fluid p-0"
1515
>
16+
@include('livewire-tables::includes.debug')
1617
@include('livewire-tables::bootstrap-5.includes.offline')
1718
@include('livewire-tables::bootstrap-5.includes.sorting-pills')
1819
@include('livewire-tables::bootstrap-5.includes.filter-pills')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
@if ($dumpFilters)
3+
@dump($filters)
4+
@endif
5+
</div>

resources/views/tailwind/datatable.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@endif
1313
@endif
1414
>
15+
@include('livewire-tables::includes.debug')
1516
@include('livewire-tables::tailwind.includes.offline')
1617

1718
<div class="flex-col">

src/DataTableComponent.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ abstract class DataTableComponent extends Component
3030
use WithSearch;
3131
use WithSorting;
3232

33+
/**
34+
* Dump the filters array for debugging at the top of the datatable
35+
*
36+
* @var bool
37+
*/
38+
public bool $dumpFilters = false;
39+
3340
/**
3441
* The default pagination theme.
3542
*

0 commit comments

Comments
 (0)