F
Filament9mo ago
ericmp

Add Selector On Admin Panel's Navbar

i want to add a selector on admin panel's navbar to let the user choose one of the options. on change, ill set the value on the session. u know any workaround to do it with filament admin panel?
4 Replies
Vp
Vp9mo ago
render hook?
ericmp
ericmpOP9mo ago
u mean to add a custom lw component using a render hook?
Vp
Vp9mo ago
You'd need render hook to apply something in navbar, what kind of data (lw, blade, etc) is up to you LW would be easy IMO, and you can just do smth like
public function updatedSelect()
{
session()->put('something');
}
public function updatedSelect()
{
session()->put('something');
}
ericmp
ericmpOP9mo ago
i think ill try to use lw + filament form + filament select component let see how i handle it, at the moment ty!

Did you find this page helpful?