Pagination default value on tables

I've got my default value added to the pagination dropdown count:
protected function getTableRecordsPerPageSelectOptions(): array
{
return [5, 10, 25, 50, 100];
}
protected function getTableRecordsPerPageSelectOptions(): array
{
return [5, 10, 25, 50, 100];
}
But I can't find a way to set the default pagination count to '5'. Does anyone know how to override the default/inital pagination value for a custom table?
3 Replies
awcodes
awcodes2y ago
Not sure if it’s the correct way to do it.
protected function getDefaultTableRecordsPerPageSelectOption(): int
{
return 5;
}
protected function getDefaultTableRecordsPerPageSelectOption(): int
{
return 5;
}
Ryan Drewniak
Ryan DrewniakOP2y ago
That seems to do the trick! Thanks so much @awcodes !
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server