F
Filament9mo 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
JapOP9mo ago
Up
Dennis Koch
Dennis Koch9mo ago
Without a page reload? Probably requires some custom JS
Jap
JapOP9mo 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 Koch9mo 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