Add loading indicator to table tabs

Hi all Any ideas on how I could add a loading indicator to table tabs? There’s a delay when switching between them so I’d like to provide some immediate user feedback on click. Thanks
5 Replies
binaryfire
binaryfire9mo ago
Bumpety bump
Lara Zeus
Lara Zeus9mo ago
maybe add classes and target it with JS!?
binaryfire
binaryfire9mo ago
Not sure how to approach it. The Tab component doesn’t support extraAttributes. And if it was a form I could use View::make and wire:loading.class.add to add a loading indicator, but these are tables.
Lara Zeus
Lara Zeus9mo ago
ah I wasnt sure about extraAttributes what if you add wire:loading in a render hook somewhere in topbar or page content
binaryfire
binaryfire9mo ago
Hmm yeah maybe a render hook that can be scoped to the page would work. I’ll give that a shot, thanks.