Skip to content

Commit

Permalink
Add clear all to LivewireCollection component
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Jan 27, 2025
1 parent e480a71 commit 219f11f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Http/Livewire/LivewireCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ protected function resetPagination()
}
}

public function clearAll()
{
$this->dispatch('clear-all-filters');
}

public function entries()
{
$entries = (new Entries($this->generateParams()))->get();
Expand Down

0 comments on commit 219f11f

Please sign in to comment.