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](https://cdn.answeroverflow.com/1265373424306622526/image.png)
5 Replies
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
for example, I have two table widgets here:
![No description](https://cdn.answeroverflow.com/1265380996363063438/image.png)
What does „pagination to navigate between different widgets“ mean?
Where does that pagination come from?
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; }
$widgets = []; foreach ($currencies as $currency) { $widgets[] = ProjectedRevenueResource\Widgets\ProjectionTable::make([ 'currencyId' => $currency->id, 'currencySymbol' => $currency->symbol ]); }
return $widgets; }