Dynamic Navigation with SubMenus not displaying
I build a dynamic Navigation from an Array with this function:
`
But the Navigation does not show the Items in the SubMenus.
What am I missing? The Documentation states, that the Navigation Item in the Submenu must contain the same Group from its parent.
6 Replies
This drives me nuts, please any help will be appreciated
Still nothing? Will I have to open an official Bug Report?
I think you should use
NavigationGroup::make()
for the parent items
then create all items without nesting, set the group and it should workI did that. Unforunately I do get the same result. You cannot return any NavigationGroup Object within the navigationItems() Array and separating the creation of the groups to the navigationGroups Array results in an Error "Call to a member function keyBy() on null" because filament()->getNavigation(); seens not to see the group .. as i stated i wasted hours on this with any possible combinations π¦
create the
NavigationGroup
separately from NavigationItem
.. separating the creation of the groups to the navigationGroups Array results in an Error "Call to a member function keyBy() on null" because filament()->getNavigation(); seems not to see the group .. tried it π¦
Sorry but i think this seems to be a bug. I will try a bug report on github
Thanks for the replies!