F
Filament10mo ago
Noxo

Navigation - groups->collapsed

is there a way to mark all groups collapsed? the groups registered from resources, like this:
protected static ?string $navigationGroup = 'Settings';
protected static ?string $navigationGroup = 'Settings';
5 Replies
Lev
Lev8mo ago
Yeah, I'm having the same question. Additionally, I've attempted to bypass this by making the NavigationGroups and Items in the panel directly instead of the resources, but try as I might, NavigationGroups are not doing anything at all. It's very strange.
Matthew
Matthew8mo ago
Im having the same issue as well I cant set a navigation group to collapsed
sweetplum
sweetplum7mo ago
Hi, have you found any solution for this issue? The side-nav is too long with more resources added. Thanks.
DrByte
DrByte7mo ago
There's an example in the docs for declaring certain Navigation Groups as ->collapsed(): https://filamentphp.com/docs/3.x/panels/navigation#customizing-navigation-groups
Erfan
Erfan7mo ago
I think you should mention each group in
app/Providers/Filament/AdminPanelProvider.php
app/Providers/Filament/AdminPanelProvider.php
to be collapsed
->navigationGroups([
NavigationGroup::make()
->label('General')
->collapsed(),
NavigationGroup::make()
->label('Tickets')
->collapsed(),

])
->navigationGroups([
NavigationGroup::make()
->label('General')
->collapsed(),
NavigationGroup::make()
->label('Tickets')
->collapsed(),

])