F
Filament2y ago
Vp

Easy way to change table records per page select options to remove "ALL"

I am trying to remove "ALL" from table pagination 'per-page', I can change using below code for One resource.. is there an easy way to not included "ALL" in all resource?
protected function getTableRecordsPerPageSelectOptions(): array
{
return [5, 10, 25, 50];
}
protected function getTableRecordsPerPageSelectOptions(): array
{
return [5, 10, 25, 50];
}
2 Replies
Vp
VpOP2y ago
I publish the table config file and change pagination.records_per_page_select_options and remove -1 Is this the correct approach?
Dan Harrin
Dan Harrin2y ago
yes
Want results from more Discord servers?
Add your server