Loading Indicators on change table page #10156
Replies: 6 comments 3 replies
-
I kinda have same problem, there is always a delay around 2 or more second for each action in pagination, search, and filter. My dev environment is below:
Starting fresh new Laravel project with "none" starter kits then only install and use table builder. Then generating the component Im using default Laravel 10 User model with 100 data generated from seeds. I also tried to use Already disabling browser extension, running on incognito or change browser still same. Current state:
Expectation:
Possible problem:
Well, if it's all because of my device or local dev environment, having a loading indicator for each possible long request is a good addition for table builder just like DataTable . Seems like there is already pull request for that |
Beta Was this translation helpful? Give feedback.
-
Has anyone solved this issue? I'm also in the same situation. My table is taking a lot of time to load. When clicking the pagination button, nothing happens for a few seconds and loads the table page. The user doesn't know if the page is being loaded or stuck. |
Beta Was this translation helpful? Give feedback.
-
I think you can create a custom template cover that table and add a wire.loading for what you want to add a loading indicator, like this : |
Beta Was this translation helpful? Give feedback.
-
Hi, I need this too. Currently, I found a temporary solution. First, add a CSS: .fi-ta-ctn {
position: relative;
} Second, Injection loading effect: FilamentView::registerRenderHook(
\Filament\Tables\View\TablesRenderHook::HEADER_BEFORE,
fn(): string => Blade::render('<div
wire:loading.flex
wire:target="tableFilters,applyTableFilters,resetTableFiltersForm,nextPage,gotoPage,previousPage"
class="absolute inset-0 justify-center items-center z-30 hidden bg-transparent backdrop-blur transition-all"
style="
background-image: linear-gradient(135deg, rgb(255 255 255 / var(--glass-opacity, 30%)), #0000), linear-gradient(var(--glass-reflex-degree, 100deg), rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%, rgb(0 0 0 / 0%) 25%);
"
>
<x-filament::icon icon="heroicon-o-arrow-path" class="h-5 w-5 animate-spin text-primary" />
</div>'),
); No table render before hook, if filament opens a |
Beta Was this translation helpful? Give feedback.
-
I created a table with a lot of data and if I change page, it takes some time to refresh the data.
During this time I can't see any loading indicator.
How can I show it?
Beta Was this translation helpful? Give feedback.
All reactions