FilamentF
Filament17mo ago
ericmp

How to disable Per page -> All

I want, in all of my filament tables, disable the ability to show all the records. In tables with 100 records it's fine, but when the table is holding thousands of records, it makes the browser to run out of RAM, and my users don't know what is happening.

So, how to hide the "all" button globally, so it is applied on all tables at once?
Screenshot_2024-08-21_at_11.25.29.png
Solution
see:

https://filamentphp.com/docs/3.x/tables/advanced#global-settings

use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Table;
 
Table::configureUsing(function (Table $table): void {
    $table
        ->paginationPageOptions([10, 25, 50]);
});
Was this page helpful?