F
Filament7mo ago
JChan

Custom Items in Top bar navigation

I want to put something in the top bar navigation that isn't a regular menu item. But I can't figure out if there is even a way to do it. I want to have a button that drops down a calendar / date picker, and each day is a link to a page (something like /deliveries/day/2024-01-01) Is this something that is even possible? If someone could just give some ideas on how to start. I can't find anything in the documentation that allows for anything in the menu bar that isn't just a link.
Solution:
Would probably be better to use a renderHook with a livewire component. It won’t be part of the navigation. But should be close enough.
Jump to solution
2 Replies
Solution
awcodes
awcodes7mo ago
Would probably be better to use a renderHook with a livewire component. It won’t be part of the navigation. But should be close enough.
JChan
JChanOP7mo ago
This is great, thanks very much! For the future, in case anyone is looking at this, I put this into my AdminPanelProvider.php use Filament\View\PanelsRenderHook; ->renderHook( PanelsRenderHook::GLOBAL_SEARCH_BEFORE, fn () => view('calendardropdown') ) Then I created a view at /resources/views/calendardropdown.blade.php I was hoping to find a render hook that would put it before my navigation items but after my brandname (I have topNavigation()), but I couldn't seem to find one for that spot. Oh well, this will work. Thanks @awcodes !
Want results from more Discord servers?
Add your server