F
Filament15mo ago
Gush

RenderHook bottom of the Menu

Hey, Im was trying to put a logo in the bottom of the sidebar.
Filament::registerRenderHook(
'sidebar.end',
fn (): View => view('filament.logoIPT.logo'),
);
Filament::registerRenderHook(
'sidebar.end',
fn (): View => view('filament.logoIPT.logo'),
);
but the code above renders it just after the last menu item, not on the bottom... any work around this? Thanks
No description
Solution:
I think I used CSS and added margin to the bottom of the sidebar and positioned the element at the bottom of the container with a position absolute
Jump to solution
6 Replies
Solution
toeknee
toeknee15mo ago
I think I used CSS and added margin to the bottom of the sidebar and positioned the element at the bottom of the container with a position absolute
Thijmen
Thijmen15mo ago
Yeah i don't think V2 had the sidebar.footer render hook And sidebar.end means after navigation items
toeknee
toeknee15mo ago
Yeah it was sidebar.end I used IIRC
Gush
GushOP15mo ago
yeah
#logoIPT {
position: absolute;
bottom: 0;
left: 0;
}
#logoIPT {
position: absolute;
bottom: 0;
left: 0;
}
did the trick, thanks again
Gush
GushOP15mo ago
one more thing (even tho i marked as solved) how do i make it hide on collapse just like the brand logo on top of the menu
toeknee
toeknee15mo ago
The same way we handle the upper, you'll need to use like x-bind:class="$store.sidebar.isOpen ? '' : 'hidden' "
Want results from more Discord servers?
Add your server