Skip to content

Commit

Permalink
add includeAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickweh committed Nov 18, 2024
1 parent 77f38a3 commit f5e8911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/views/livewire/data-table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@
:allow-soft-deletes="$allowSoftDeletes"
:show-restore-button="$showRestoreButton"
/>
@includeWhen($includeAfter, $includeAfter)
</x-tall-datatables::data-table-wrapper>
3 changes: 3 additions & 0 deletions src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ class DataTable extends Component

protected ?string $includeBefore = null;

protected ?string $includeAfter = null;

protected bool $useWireNavigate = true;

protected $listeners = ['loadData'];
Expand Down Expand Up @@ -884,6 +886,7 @@ protected function getViewData(): array
'useWireNavigate' => $this->useWireNavigate,
'colLabels' => $this->colLabels,
'includeBefore' => $this->includeBefore,
'includeAfter' => $this->includeAfter,
'selectValue' => $this->getSelectValue(),
'allowSoftDeletes' => $this->allowSoftDeletes(),
'showRestoreButton' => $this->showRestoreButton(),
Expand Down

0 comments on commit f5e8911

Please sign in to comment.