How can I access filtered table data from a List-X-Resource? wanna add print action.

how can I access filtered table data from a List-X-Resource? I wanna add print action (print a report with the filtered data).
4 Replies
Dan Harrin
Dan Harrin2y ago
$livewire->getTableRecords() maybe
Mustafa_Dev
Mustafa_DevOP2y ago
Mmmm, I got no data. this is what I got
Illuminate\Pagination\LengthAwarePaginator {#2261 ▼ // app\Filament\Resources\TarkeebResource\Pages\ListTarkeebs.php:21
#items: Illuminate\Database\Eloquent\Collection {#2286 ▶}
#perPage: 20
#currentPage: 1
#path: "http://decor.test/livewire/message/app.filament.resources.tarkeeb-resource.pages.list-tarkeebs"
#query: []
#fragment: null
#pageName: "page"
+onEachSide: 1
#options: array:2 [▶]
#total: 2
#lastPage: 1
}
Illuminate\Pagination\LengthAwarePaginator {#2261 ▼ // app\Filament\Resources\TarkeebResource\Pages\ListTarkeebs.php:21
#items: Illuminate\Database\Eloquent\Collection {#2286 ▶}
#perPage: 20
#currentPage: 1
#path: "http://decor.test/livewire/message/app.filament.resources.tarkeeb-resource.pages.list-tarkeebs"
#query: []
#fragment: null
#pageName: "page"
+onEachSide: 1
#options: array:2 [▶]
#total: 2
#lastPage: 1
}
Dan Harrin
Dan Harrin2y ago
items property contains the items of the paginator
Mustafa_Dev
Mustafa_DevOP2y ago
Yes Yes, I'm super dump 😆 Thanks Dan.
Want results from more Discord servers?
Add your server