Skip to content

Commit 3bac8aa

Browse files
committed
Disable column checkboxes while syncing
1 parent 9cfe4d9 commit 3bac8aa

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class UsersTable extends DataTableComponent
6666
- [x] Bootstrap 4 Template
6767
- [x] Bootstrap 5 Template
6868
- [x] Sorting By Relationships
69+
- [x] User Column Selection
6970
- [ ] Collection/Query Support
7071
- [ ] Test Suite (WIP)
7172
- [ ] Column Search

resources/views/bootstrap-4/includes/column-select.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
@if ($column->isVisible() && $column->isSelectable())
1010
<div>
1111
<label class="px-2 {{ $loop->last ? 'mb-0' : 'mb-1' }}">
12-
<input wire:model="columnSelectEnabled" type="checkbox" value="{{ $column->column() }}">
12+
<input
13+
wire:model="columnSelectEnabled"
14+
wire:target="columnSelectEnabled"
15+
wire:loading.attr="disabled"
16+
type="checkbox"
17+
value="{{ $column->column() }}"
18+
/>
1319
<span class="ml-2">{{ $column->text() }}</span>
1420
</label>
1521
</div>

resources/views/bootstrap-5/includes/column-select.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
@if ($column->isVisible() && $column->isSelectable())
1010
<div>
1111
<label class="px-2 {{ $loop->last ? 'mb-0' : 'mb-1' }}">
12-
<input wire:model="columnSelectEnabled" type="checkbox" value="{{ $column->column() }}">
12+
<input
13+
wire:model="columnSelectEnabled"
14+
wire:target="columnSelectEnabled"
15+
wire:loading.attr="disabled"
16+
type="checkbox"
17+
value="{{ $column->column() }}"
18+
/>
1319
<span class="ml-2">{{ $column->text() }}</span>
1420
</label>
1521
</div>

resources/views/tailwind/includes/column-select.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg z-50"
4343
@if ($column->isVisible() && $column->isSelectable())
4444
<div>
4545
<label class="px-2 py-1 inline-flex items-center">
46-
<input wire:model="columnSelectEnabled" type="checkbox" value="{{ $column->column() }}">
46+
<input
47+
wire:model="columnSelectEnabled"
48+
wire:target="columnSelectEnabled"
49+
wire:loading.attr="disabled"
50+
type="checkbox"
51+
value="{{ $column->column() }}"
52+
/>
4753
<span class="ml-2">{{ $column->text() }}</span>
4854
</label>
4955
</div>

0 commit comments

Comments
 (0)