© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
49 replies
Fatherdeadx

Collapse NavigationGroups by default when used as ENUM

4️⃣v4
I decided to use the NavigationGroup enum, which allows me to do this on my resource.

protected static string|UnitEnum|null $navigationGroup = AdminNavigationGroup::ProductsServices;
protected static string|UnitEnum|null $navigationGroup = AdminNavigationGroup::ProductsServices;


But how do I make the group collapsed by default ? I tried to implement Collapsible from the Filament\Support\Contracts\Collapsible but a quick dd showed the functions were not called for NavigationGroup.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Collapse table groups by default
FilamentFFilament / ❓┊help
2y ago
Collapse All Table Row Groups By Default
FilamentFFilament / ❓┊help
2y ago
How to collapse sidebar in filament php by default
FilamentFFilament / ❓┊help
2y ago