app/Http/Livewire/Datatable.php: Adding toggleTrashed()
This commit is contained in:
parent
c0e0357a43
commit
34fb4034bb
1 changed files with 6 additions and 0 deletions
|
|
@ -110,6 +110,12 @@ class Datatable extends Component
|
||||||
return view('livewire.datatable', ['items' => $items]);
|
return view('livewire.datatable', ['items' => $items]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function toggleTrashed()
|
||||||
|
{
|
||||||
|
$this->trashed = !$this->trashed;
|
||||||
|
$this->setTrashedColumns();
|
||||||
|
}
|
||||||
|
|
||||||
private function setTrashedColumns()
|
private function setTrashedColumns()
|
||||||
{
|
{
|
||||||
if ($this->trashed) {
|
if ($this->trashed) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue