_vishalshah
_vishalshah
FFilament
Created by _vishalshah on 8/18/2023 in #❓┊help
How can add tabs in custom page?
can we use getTabs function in custom pages in Filament V3 so we can show the on top of the Table? Like this? public function getTabs(): array { return [ null => ListRecords\Tab::make('All'), 'new' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'new')), 'processing' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'processing')), 'shipped' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'shipped')), 'delivered' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'delivered')), 'cancelled' => ListRecords\Tab::make()->query(fn ($query) => $query->where('status', 'cancelled')), ]; }
5 replies