File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
12
12
13
13
### Changed
14
14
15
- - Made tableName property public so it can be accessed in views
16
15
- Fixed bulk actions dropdown on Bootstrap - https://github.com/rappasoft/laravel-livewire-tables/pull/519
17
16
- Fixed bulk row/select with pagination off - https://github.com/rappasoft/laravel-livewire-tables/issues/510
18
17
- Conditionally show cursor-pointer class instead of inline style - https://github.com/rappasoft/laravel-livewire-tables/pull/529
Original file line number Diff line number Diff line change 1
1
@if ($this -> showBulkActionsDropdown )
2
- <div class =" mb-3 mb-md-0" id =" {{ $tableName } } -bulkActionsWrapper" >
2
+ <div class =" mb-3 mb-md-0" id =" {{ $bulkKey = \ Illuminate \ Support \Str :: random () } } -bulkActionsWrapper" >
3
3
<div class =" dropdown d-block d-md-inline" >
4
- <button class =" btn dropdown-toggle d-block w-100 d-md-inline" type =" button" id =" {{ $tableName } } -bulkActions" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
4
+ <button class =" btn dropdown-toggle d-block w-100 d-md-inline" type =" button" id =" {{ $bulkKey } } -bulkActions" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
5
5
@lang (' Bulk Actions' )
6
6
</button >
7
7
8
- <div class =" dropdown-menu dropdown-menu-right w-100" aria-labelledby =" {{ $tableName } } -bulkActions" >
8
+ <div class =" dropdown-menu dropdown-menu-right w-100" aria-labelledby =" {{ $bulkKey } } -bulkActions" >
9
9
@foreach ($this -> bulkActions as $action => $title )
10
10
<a
11
11
href =" #"
Original file line number Diff line number Diff line change 1
1
@if ($this -> showBulkActionsDropdown )
2
- <div class =" mb-3 mb-md-0" id =" {{ $tableName } } -bulkActionsWrapper" >
2
+ <div class =" mb-3 mb-md-0" id =" {{ $bulkKey = \ Illuminate \ Support \Str :: random () } } -bulkActionsWrapper" >
3
3
<div class =" dropdown d-block d-md-inline" >
4
- <button class =" btn dropdown-toggle d-block w-100 d-md-inline" type =" button" id =" {{ $tableName } } -bulkActions" data-bs-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
4
+ <button class =" btn dropdown-toggle d-block w-100 d-md-inline" type =" button" id =" {{ $bulkKey } } -bulkActions" data-bs-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
5
5
@lang (' Bulk Actions' )
6
6
</button >
7
7
8
- <div class =" dropdown-menu dropdown-menu-end w-100" aria-labelledby =" {{ $tableName } } -bulkActions" >
8
+ <div class =" dropdown-menu dropdown-menu-end w-100" aria-labelledby =" {{ $bulkKey } } -bulkActions" >
9
9
@foreach ($this -> bulkActions as $action => $title )
10
10
<a
11
11
href =" #"
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ abstract class DataTableComponent extends Component
87
87
*
88
88
* @var string
89
89
*/
90
- public string $ tableName = 'table ' ;
90
+ protected string $ tableName = 'table ' ;
91
91
92
92
/**
93
93
* Name of the page parameter for pagination
You can’t perform that action at this time.
0 commit comments