F
Filament6mo 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
Jap6mo ago
Up
Dennis Koch
Dennis Koch6mo ago
Without a page reload? Probably requires some custom JS
Jap
Jap6mo 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 Koch6mo 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
Want results from more Discord servers?
Add your server