Extending ListPage doesn't work in v3

Upon upgrading to v3, I found out that the columns in the custom page show the same columns as in the ListPage, although I have the following:
use Filament\Tables\Columns\TextColumn;

...

class InvoiceStats extends ListInvoices
{
protected static string $resource = InvoiceResource::class;
protected static string $view = 'filament.resources.invoice-resource.pages.invoice-stats';

protected function getTableColumns(): array
{
return [
TextColumn::make('invoice_number')
->label('Invoice #')
->searchable(),
...
];
}
use Filament\Tables\Columns\TextColumn;

...

class InvoiceStats extends ListInvoices
{
protected static string $resource = InvoiceResource::class;
protected static string $view = 'filament.resources.invoice-resource.pages.invoice-stats';

protected function getTableColumns(): array
{
return [
TextColumn::make('invoice_number')
->label('Invoice #')
->searchable(),
...
];
}
1 Reply
Patrick Boivin
Patrick Boivin15mo ago
See if you can override the table() method instead to customize the columns.
Want results from more Discord servers?
Add your server