Skip to content

Commit

Permalink
Add loading
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Jan 5, 2024
1 parent 6041906 commit aa2ffe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="items-center justify-between sm:flex">
<div class="items-center justify-between sm:flex" wire:loading.class="blur-[2px]" wire:target="loadMore">
<div class="items-center justify-between w-full sm:flex-1 sm:flex">
@if ($recordCount === 'full')
<div>
Expand Down
5 changes: 5 additions & 0 deletions resources/views/components/table-base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ class="{{ data_get($theme, 'table.tbodyClass') }}"
</tbody>
@endif
</table>

{{-- infinite pagination handler --}}
@if ($this->canLoadMore && $lazy)
<div class="justify-center items-center" wire:loading.class="flex" wire:target="loadMore">
@include(powerGridThemeRoot() . '.header.loading')
</div>

<div x-data="pgLoadMore"></div>
@endif
</div>

0 comments on commit aa2ffe7

Please sign in to comment.