File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
resources/views/tailwind/includes Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " rappasoft /laravel-livewire-tables" ,
2
+ "name" : " deltasystems /laravel-livewire-tables" ,
3
3
"description" : " A dynamic table component for Laravel Livewire" ,
4
4
"keywords" : [
5
5
" rappasoft" ,
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class="rounded border-gray-300 text-indigo-600 shadow-sm transition duration-150
96
96
@forelse ($rows as $index => $row )
97
97
<x-livewire-tables::table .row
98
98
wire:loading.class.delay =" opacity-50 dark:bg-gray-900 dark:opacity-60"
99
- wire:key =" table-row-{{ $row -> {$primaryKey } } }"
99
+ wire:key =" table-row-{{ md5 ( rand ()) } } - {{ $row -> {\ Rappasoft \ LaravelLivewireTables \ Utilities \ColumnUtilities :: parseField ( $primaryKey ) } } }"
100
100
wire:sortable.item =" {{ $row -> {$primaryKey } } }"
101
101
:reordering =" $reordering"
102
102
:url =" method_exists($this, 'getTableRowUrl') ? $this->getTableRowUrl($row) : ''"
Original file line number Diff line number Diff line change @@ -28,24 +28,30 @@ class Filter
28
28
*/
29
29
public array $ options = [];
30
30
31
+ /**
32
+ * @var array
33
+ */
34
+ public array $ attributes = [];
35
+
31
36
/**
32
37
* Filter constructor.
33
38
*
34
39
* @param string $name
35
40
*/
36
- public function __construct (string $ name )
41
+ public function __construct (string $ name, ? array $ attributes = [] )
37
42
{
38
43
$ this ->name = $ name ;
44
+ $ this ->attributes = $ attributes ;
39
45
}
40
46
41
47
/**
42
48
* @param string $name
43
49
*
44
50
* @return Filter
45
51
*/
46
- public static function make (string $ name ): Filter
52
+ public static function make (string $ name, ? array $ attributes = [] ): Filter
47
53
{
48
- return new static ($ name );
54
+ return new static ($ name, $ attributes );
49
55
}
50
56
51
57
/**
You can’t perform that action at this time.
0 commit comments