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
Bumpety bump
maybe add classes and target it with JS!?
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.
ah I wasnt sure about
extraAttributes
what if you add wire:loading in a render hook somewhere in topbar or page contentHmm yeah maybe a render hook that can be scoped to the page would work. I’ll give that a shot, thanks.