F
Filament6mo 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
Vp6mo ago
render hook?
ericmp
ericmpOP6mo ago
u mean to add a custom lw component using a render hook?
Vp
Vp6mo 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
ericmpOP6mo ago
i think ill try to use lw + filament form + filament select component let see how i handle it, at the moment ty!
Want results from more Discord servers?
Add your server