F
FilamentSkrypt

Navigation Builder Parent Item / Child Items

Hi, can anyone be so kind to explain how this is supposed to work? I know that inside of resources, I can simply add the navigationParentItem property and the auto-generated filament navigation will build it correctly. But for various reasons I'm building the navigation myself (by calling ->navigation() on the panel), but I can't get the 3rd level items to work. Creating items and groups is explained in the docs, but I can't find any info how to create the parent / child items (3rd level) using the NavigationBuilder. I used both the parentItem(<label>) and childItems(<array>) methods in the NavigationItem, but still no luck.
S
Skryptβ€’18d ago
Okay, so I fixed it by accident. Turns out it works only if isActiveWhen is correctly set up. πŸ™‚