Datatable pagination is showing "compact" version
I'm sure this is really obvious but I can't see what I'm doing wrong here.
I've made a datatable and it's populating fine. But the pagination is not showing the page numbers and the "Showing x of y records" message. Instead it's showing "next" and "previous" buttons to navigate between pages.
public function table(Table $table): Table
{
return $table
->query($this->getTableQuery())
->columns($this->getTableColumns())
->actions($this->getTableActions())
->emptyStateHeading('No posts found');
}
Solution:Jump to solution
Ok I've figured it out. It's just how the pagination behaves on smaller screens.
1 Reply
Solution
Ok I've figured it out. It's just how the pagination behaves on smaller screens.