F
Filament11mo ago
Jap

Updating value of Navigation Badge

How can i update the value of navigation badge, For example after creating or deleting a record ?
4 Replies
Jap
JapOP11mo ago
Up
Dennis Koch
Dennis Koch11mo ago
Without a page reload? Probably requires some custom JS
Jap
JapOP11mo ago
Yes for example
CreateAction::make()
->after(function () {
// access the navigation badge then update the value
})
CreateAction::make()
->after(function () {
// access the navigation badge then update the value
})
Dennis Koch
Dennis Koch11mo ago
I don't think that's possible. It would require a rerender of the sidebar. You could try targeting it with some custom JS

Did you find this page helpful?