navigationParentItem
in there a way to keep the navigation children always visible? Without using the navigation group.
15 Replies
By always visible do you mean prevent the user from being able to collapse groups? If so: https://filamentphp.com/docs/3.x/panels/navigation#grouping-navigation-items-under-other-items
You can do it by navigation group or you can just globally disable it
Hi, I'm talking about new filament's feature to create parent nav items, like the image attached, but it only show the childrens if you click on the parent.
btw, your link doesn't work
oops internal work link lol
But yeah I totally missed the title of your post π
I just took a quick source dive and couldn't figure out a clean way to make it always visible so I'm of no use to you lol
Lol, no worries at all, thanks for jumping out so quick. π
up
hey did you find a solution to this?
Not at all my man
Bump, I'm looking for a solution as well.
@ingmontoya if you omit $navigationIcon it renders in a similar manner ( better IMO ) without the hide/show behavior. Not sure if that is what you are looking for?
Hmm, I commented out the
$navigationIcon
but it still hides and doesn't render with the line.
Is this documented anywhere or am I doing it wrong? I commented it out on the child resource.@morty oh sorry, I think you have to comment out the $navigationParentItem line too, and just use $navigationSort to get the "child" below. I'm not sure if it's documented... I just stumbled on it through experimentation
That worked! Thanks!
That means it's no longer a child item lol
@Mikail yep, that's why I put "child" in quotes... it's a confusing config for sure.
Works exactly how I want though: