F
Filamentβ€’14mo ago
ingmontoya

navigationParentItem

in there a way to keep the navigation children always visible? Without using the navigation group.
15 Replies
ConnorHowell
ConnorHowellβ€’14mo ago
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
ingmontoya
ingmontoyaOPβ€’14mo ago
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.
No description
ingmontoya
ingmontoyaOPβ€’14mo ago
btw, your link doesn't work
ConnorHowell
ConnorHowellβ€’14mo ago
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
ingmontoya
ingmontoyaOPβ€’14mo ago
Lol, no worries at all, thanks for jumping out so quick. πŸ™‚ up
Mikail
Mikailβ€’6mo ago
hey did you find a solution to this?
ingmontoya
ingmontoyaOPβ€’6mo ago
Not at all my man
morty
mortyβ€’6mo ago
Bump, I'm looking for a solution as well.
nanopanda
nanopandaβ€’6mo ago
@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?
No description
morty
mortyβ€’6mo ago
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.
nanopanda
nanopandaβ€’6mo ago
@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
morty
mortyβ€’6mo ago
That worked! Thanks!
Mikail
Mikailβ€’6mo ago
That means it's no longer a child item lol
nanopanda
nanopandaβ€’6mo ago
@Mikail yep, that's why I put "child" in quotes... it's a confusing config for sure.
morty
mortyβ€’6mo ago
Works exactly how I want though:
No description

Did you find this page helpful?