Can someone help with render hooks?
Hello! I am beginner to the filament and i cant get it how to create livewire render hook view to make it look like a notification sidebar? Thanks for help !
5 Replies
@Glebka Can you elaborate please? You have the existing notification icon and sidebar already. What do you want to do with a render hook?
I want to add button to the topbar, when user preses a button its opens a sidebar similar to notifications sidebar, right now i dont have anything besids an idea, but thanks for truing to help me!
I understand! I would typically create a Livewire component for it. I would use the modal component (https://filamentphp.com/docs/3.x/support/blade-components/modal) and configure the modal as a slideover.
You can then use a render hook to place the modal trigger in the top bar with something like: PanelsRenderHook::USER_MENU_BEFORE
Solution
sorry, for your time. That wa easier than i thought π
@Glebka No problem at all!