Skip to content

Commit ab927ca

Browse files
committed
Changes
- Added disabled delay on select checkboxes. - Added disabled on bulk row button clicks.
1 parent ebe5de9 commit ab927ca

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
77
### Added
88

99
- Added Unselect All button on bulk row when selecting page.
10+
- Added disabled delay on select checkboxes.
11+
- Added disabled on bulk row button clicks.
1012

1113
### Changed
1214

resources/views/bootstrap-4/includes/bulk-select-row.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<button
1313
wire:click="resetBulk"
14+
wire:loading.attr="disabled"
1415
type="button"
1516
class="btn btn-primary btn-sm"
1617
>
@@ -27,6 +28,7 @@ class="btn btn-primary btn-sm"
2728

2829
<button
2930
wire:click="resetBulk"
31+
wire:loading.attr="disabled"
3032
type="button"
3133
class="btn btn-primary btn-sm"
3234
>
@@ -44,6 +46,7 @@ class="btn btn-primary btn-sm"
4446

4547
<button
4648
wire:click="resetBulk"
49+
wire:loading.attr="disabled"
4750
type="button"
4851
class="btn btn-primary btn-sm"
4952
>
@@ -61,6 +64,7 @@ class="btn btn-primary btn-sm"
6164

6265
<button
6366
wire:click="selectAll"
67+
wire:loading.attr="disabled"
6468
type="button"
6569
class="btn btn-primary btn-sm"
6670
>
@@ -69,6 +73,7 @@ class="btn btn-primary btn-sm"
6973

7074
<button
7175
wire:click="resetBulk"
76+
wire:loading.attr="disabled"
7277
type="button"
7378
class="btn btn-primary btn-sm"
7479
>

resources/views/bootstrap-4/includes/table.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<x-livewire-tables::bs4.table.cell>
4040
<input
4141
wire:model="selected"
42+
wire:loading.attr.delay="disabled"
4243
value="{{ $row->{$primaryKey} }}"
4344
onclick="event.stopPropagation();return true;"
4445
type="checkbox"

resources/views/bootstrap-5/includes/bulk-select-row.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<button
1313
wire:click="resetBulk"
14+
wire:loading.attr="disabled"
1415
type="button"
1516
class="btn btn-primary btn-sm"
1617
>
@@ -27,6 +28,7 @@ class="btn btn-primary btn-sm"
2728

2829
<button
2930
wire:click="resetBulk"
31+
wire:loading.attr="disabled"
3032
type="button"
3133
class="btn btn-primary btn-sm"
3234
>
@@ -44,6 +46,7 @@ class="btn btn-primary btn-sm"
4446

4547
<button
4648
wire:click="resetBulk"
49+
wire:loading.attr="disabled"
4750
type="button"
4851
class="btn btn-primary btn-sm"
4952
>
@@ -61,6 +64,7 @@ class="btn btn-primary btn-sm"
6164

6265
<button
6366
wire:click="selectAll"
67+
wire:loading.attr="disabled"
6468
type="button"
6569
class="btn btn-primary btn-sm"
6670
>
@@ -69,6 +73,7 @@ class="btn btn-primary btn-sm"
6973

7074
<button
7175
wire:click="resetBulk"
76+
wire:loading.attr="disabled"
7277
type="button"
7378
class="btn btn-primary btn-sm"
7479
>

resources/views/bootstrap-5/includes/table.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class="form-check-input"
4040
<x-livewire-tables::bs5.table.cell class="align-middle">
4141
<input
4242
wire:model="selected"
43+
wire:loading.attr.delay="disabled"
4344
value="{{ $row->{$primaryKey} }}"
4445
onclick="event.stopPropagation();return true;"
4546
class="form-check-input"

resources/views/tailwind/includes/bulk-select-row.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<button
1313
wire:click="resetBulk"
14+
wire:loading.attr="disabled"
1415
type="button"
1516
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out"
1617
>
@@ -27,6 +28,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
2728

2829
<button
2930
wire:click="resetBulk"
31+
wire:loading.attr="disabled"
3032
type="button"
3133
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out"
3234
>
@@ -44,6 +46,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
4446

4547
<button
4648
wire:click="resetBulk"
49+
wire:loading.attr="disabled"
4750
type="button"
4851
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out"
4952
>
@@ -61,6 +64,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
6164

6265
<button
6366
wire:click="selectAll"
67+
wire:loading.attr="disabled"
6468
type="button"
6569
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out"
6670
>
@@ -69,6 +73,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
6973

7074
<button
7175
wire:click="resetBulk"
76+
wire:loading.attr="disabled"
7277
type="button"
7378
class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium focus:outline-none focus:text-gray-800 focus:underline transition duration-150 ease-in-out"
7479
>

resources/views/tailwind/includes/table.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class="rounded-md shadow-sm border-gray-300 block transition duration-150 ease-i
4444
<div class="flex rounded-md shadow-sm">
4545
<input
4646
wire:model="selected"
47+
wire:loading.attr.delay="disabled"
4748
value="{{ $row->{$primaryKey} }}"
4849
onclick="event.stopPropagation();return true;"
4950
type="checkbox"

0 commit comments

Comments
 (0)