File tree Expand file tree Collapse file tree 6 files changed +35
-8
lines changed Expand file tree Collapse file tree 6 files changed +35
-8
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
4
4
5
5
## [ Unreleased]
6
6
7
+ ### Added
8
+
9
+ - [ Ability to turn off filter dropdown] ( https://github.com/rappasoft/laravel-livewire-tables/pull/285 )
10
+
11
+ ### Changed
12
+
13
+ - [ Fix ambiguous column id when using Relation instead of Builder] ( https://github.com/rappasoft/laravel-livewire-tables/pull/283 )
14
+ - [ Use column text for sorting and filter pills if no $filterNames or $sortNames exist] ( https://github.com/rappasoft/laravel-livewire-tables/pull/286 )
15
+ - [ Fix tailwind pagination view] ( https://github.com/rappasoft/laravel-livewire-tables/pull/284 )
16
+
7
17
## [ 1.6.1] - 2021-05-13
8
18
9
19
### Changed
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ class="container-fluid p-0"
20
20
<div class =" d-md-flex" >
21
21
@include (' livewire-tables::bootstrap-4.includes.search' )
22
22
23
- <div class =" ml-0 ml-md-3 mb-3 mb-md-0" >
24
- @include (' livewire-tables::bootstrap-4.includes.filters' )
25
- </div >
23
+ @if ($showFilterDropdown )
24
+ <div class =" ml-0 ml-md-3 mb-3 mb-md-0" >
25
+ @include (' livewire-tables::bootstrap-4.includes.filters' )
26
+ </div >
27
+ @endif
26
28
</div >
27
29
28
30
<div class =" d-md-flex" >
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ class="container-fluid p-0"
20
20
<div class =" d-md-flex" >
21
21
@include (' livewire-tables::bootstrap-5.includes.search' )
22
22
23
- <div class =" ms-0 ms-md-3 mb-3 mb-md-0" >
24
- @include (' livewire-tables::bootstrap-5.includes.filters' )
25
- </div >
23
+ @if ($showFilterDropdown )
24
+ <div class =" ms-0 ms-md-3 mb-3 mb-md-0" >
25
+ @include (' livewire-tables::bootstrap-5.includes.filters' )
26
+ </div >
27
+ @endif
26
28
</div >
27
29
28
30
<div class =" d-md-flex" >
Original file line number Diff line number Diff line change 1
- @if ($showFilters && ($filtersView || count ($customFilters )) )
1
+ @if ($showFilterDropdown && ($filtersView || count ($customFilters )) )
2
2
<div
3
3
x-data =" { open: false }"
4
4
@keydown .escape.stop =" open = false"
Original file line number Diff line number Diff line change 11
11
trait WithBulkActions
12
12
{
13
13
public string $ primaryKey = 'id ' ;
14
- public bool $ showFilters = true ;
15
14
public bool $ selectPage = false ;
16
15
public bool $ selectAll = false ;
17
16
public $ selected = [];
Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ trait WithFilters
27
27
*/
28
28
public array $ filterNames = [];
29
29
30
+ /**
31
+ * Show the filter pills
32
+ *
33
+ * @var bool
34
+ */
35
+ public bool $ showFilters = true ;
36
+
37
+ /**
38
+ * Show the filter dropdown
39
+ *
40
+ * @var bool
41
+ */
42
+ public bool $ showFilterDropdown = true ;
43
+
30
44
/**
31
45
* Default filters
32
46
*
You can’t perform that action at this time.
0 commit comments