Many navigation items for same resource to apply filter or set tab that is active

Hi! In the EventResource there is a table with title and type. Type is an enum, it can be COURSE, SERVICE, PROJECT. I have tabs that can filter on the enum. But for the user experience I would like to have navigation links, Course, Service, Project. And when they are clicked the user gets to the eventResource and the corresponding filter/tab is already activated. Can anyone point me in the right direction. Thanks in advance! Tobias
Solution:
Just found one way.
Jump to solution
2 Replies
Solution
tobias.sioland
tobias.sioland7mo ago
Just found one way.
tobias.sioland
tobias.siolandOP7mo ago
Filament::registerNavigationItems([
\Filament\Navigation\NavigationItem::make('Mentormeeting')
->url('/events?activeTab=Mentormeeting')
->icon('heroicon-o-calendar')
->sort(1),
]);
Filament::registerNavigationItems([
\Filament\Navigation\NavigationItem::make('Mentormeeting')
->url('/events?activeTab=Mentormeeting')
->icon('heroicon-o-calendar')
->sort(1),
]);
In AppServiceProvider
Want results from more Discord servers?
Add your server