filamentphp / demo

Source code for the demo.filamentphp.com website.
https://demo.filamentphp.com
MIT License
840 stars 414 forks source link

Navigation groups order with collapsible state #106

Closed mikemastercorp closed 1 month ago

mikemastercorp commented 1 month ago

Hello. I've been trying to get the filament navigation groups I've created to get ordered in the desired way, however I also wanted to be able to set some groups as collapsed and other non-collapsed.

I know how to sort the navigation groups in AdminPanelProvider.php however in your example you are simply listing the navigation groups in the desired order letting them all to be collapsed. How should I modify the code to make let's say Blog group open and Shop group closed...

->navigationGroups([
    'Shop',
     'Blog',
 ])

Also, I've attempted to define an icon for a navigation group while having defined icons for the items inside the group and I got a warning that I have the right to either add an icon on the navigation group or the items inside. The explanation was to avoid confusion, however most nowadays admins allow the group as well as the items inside to have an icon that is sometimes facilitating the options understanding from the first look. Can you elaborate on the idea of this limitation?

pxlrbt commented 1 month ago

Hey, this is the issue tracker for the demo repository. Please post question either on our Discord or in the Discussion section of the filament/filament repo. Thanks.