Nested Navigation Groups in v3

In v2 I was using a nested naivgation groups, which str no longer supported in v3. The error that I get is: "Navigation group [] has a nested group, which is not supported in the sidebar design at the moment." Is there an alternative for that? Here's how my menu was in v2 and I would like to do the same as I have a lot of items:
10 Replies
toeknee
toeknee16mo ago
Unfortunately not at present, we haven't been able to come up with a good design for it. The reason for the notice is because of the support for topbar navigation
StanProg
StanProgOP16mo ago
Is there a way just to add some "margin-left" per item, so I can simulate somehow the nesting?
toeknee
toeknee16mo ago
Sure you can do that with extraAttributes so: ->extraAttributes(['class' => 'ml-4'])
StanProg
StanProgOP16mo ago
It seems that this method does not exist in NavigationItem: Method Filament\Navigation\NavigationItem::extraAttributes does not exist.
toeknee
toeknee16mo ago
Let me check
StanProg
StanProgOP16mo ago
It's available with the HasExtraAttributes trait, but NavigationItem does not use it.
toeknee
toeknee16mo ago
Ok you are right 😦 You could look to submit a PR to support it with that rationale
Patrick Boivin
Patrick Boivin16mo ago
This has been in the back of my mind for a little bit, I would benefit from this PR! It would also unlock many possibilities to customize the navigation items with Alpine.js directives.
manojkiran
manojkiran15mo ago
GitHub
Nested navigation group in V3 · filamentphp filament · Discussion #...
In v2 it it totally possible to add multilevel menu after the PR by @Nuhel But unfortunately the API that is implemented in v3 gives the error such as Navigation group [Test Nav Group] has a nested...
Dennis Koch
Dennis Koch15mo ago
A feature request alone will not help. We are aware that this is a regression, but Zep didn't find a design that fittes all scenarios (groups/no groups, icons/icons, ...). That's the main issue.
Want results from more Discord servers?
Add your server