File tree Expand file tree Collapse file tree 5 files changed +18
-3
lines changed
resources/views/bootstrap-4 Expand file tree Collapse file tree 5 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
4
4
5
5
## [ Unreleased]
6
6
7
+ ## [ 0.4.0] - 2021-04-14
8
+
9
+ ### Changed
10
+
11
+ - Fixed polling issue
12
+ - Fixed [ MongoDB per page issue] ( https://github.com/rappasoft/laravel-livewire-tables/pull/107 )
13
+ - [ Fixed use of $clearSearchButtonClass variable] ( https://github.com/rappasoft/laravel-livewire-tables/pull/118 )
14
+
7
15
## [ 0.3.3] - 2020-12-13
8
16
9
17
### Added
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class="form-control"
27
27
/>
28
28
@if ($clearSearchButton )
29
29
<div class =" input-group-append" >
30
- <button class =" btn btn-outline-dark " type =" button" wire:click =" clearSearch" >@lang (' laravel-livewire-tables::strings.clear' )</button >
30
+ <button class =" {{ $clearSearchButtonClass } } " type =" button" wire:click =" clearSearch" >@lang (' laravel-livewire-tables::strings.clear' )</button >
31
31
</div >
32
32
</div >
33
33
@endif
Original file line number Diff line number Diff line change 1
1
<div
2
2
class =" {{ $this -> getOption (' bootstrap.container' ) ? ' container-fluid' : ' ' } }"
3
- @if (is_numeric ($refresh ) ) wire:poll.{{ $refresh }}. ms @elseif (is_string ($refresh ) ) wire:poll =" {{ $refresh } }" @endif
3
+ @if (is_numeric ($refresh ) ) wire:poll.{{ $refresh }}ms @elseif (is_string ($refresh ) ) wire:poll =" {{ $refresh } }" @endif
4
4
>
5
5
@include (' laravel-livewire-tables::' . config (' laravel-livewire-tables.theme' ). ' .includes.offline' )
6
6
@include (' laravel-livewire-tables::' . config (' laravel-livewire-tables.theme' ). ' .includes.options' )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function render(): View
96
96
{
97
97
return view ($ this ->view (), [
98
98
'columns ' => $ this ->columns (),
99
- 'models ' => $ this ->paginationEnabled ? $ this ->models ()->paginate ($ this ->perPage ) : $ this ->models ()->get (),
99
+ 'models ' => $ this ->paginationEnabled ? $ this ->models ()->paginate (( int ) $ this ->perPage ) : $ this ->models ()->get (),
100
100
]);
101
101
}
102
102
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ trait Search
42
42
*/
43
43
public $ clearSearchButton = false ;
44
44
45
+ /**
46
+ * The class applied to the clear button.
47
+ *
48
+ * @var bool
49
+ */
50
+ public $ clearSearchButtonClass = 'btn btn-outline-dark ' ;
51
+
45
52
/**
46
53
* Resets the search string.
47
54
*/
You can’t perform that action at this time.
0 commit comments