F
Filament2mo ago
k3l

Disable Pagination in List of Widgets

Hi guys! I am generating a lot of table widgets in the same view and this generate a pagination by deafualt. How can I hide the pagination and always show all tables widgets?
No description
5 Replies
k3l
k3l2mo ago
This is specific for each table and I already used it. But I dont know how to use when I have a pagination to navigate between differents widgets
k3l
k3l2mo ago
for example, I have two table widgets here:
No description
Dennis Koch
Dennis Koch2mo ago
What does „pagination to navigate between different widgets“ mean? Where does that pagination come from?
k3l
k3l2mo ago
Inside the getHeaderWidgets() function, I have a for that generates a different widget for each currency. I think because the function returns an array of widgets, it automatically sets up pagination. I don't know how can I disable it and show all widgets protected function getHeaderWidgets(): array { $organizationId = Auth::user()->organization_id; $currencies = Currency::where('organization_id', $organizationId)->where('status', true)->get();
$widgets = []; foreach ($currencies as $currency) { $widgets[] = ProjectedRevenueResource\Widgets\ProjectionTable::make([ 'currencyId' => $currency->id, 'currencySymbol' => $currency->symbol ]); }
return $widgets; }
Want results from more Discord servers?
Add your server