Skip to content

Commit fffa20d

Browse files
authored
Restore component to wrapper (rappasoft#2099)
1 parent 4b6d468 commit fffa20d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/components/wrapper.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@props(['tableName', 'primaryKey', 'isTailwind', 'isBootstrap','isBootstrap4', 'isBootstrap5'])
1+
@props(['component', 'tableName', 'primaryKey', 'isTailwind', 'isBootstrap','isBootstrap4', 'isBootstrap5'])
22
<div wire:key="{{ $tableName }}-wrapper" >
33
<div {{ $attributes->merge($this->getComponentWrapperAttributes()) }}
44
@if ($this->hasRefresh()) wire:poll{{ $this->getRefreshOptions() }} @endif

resources/views/datatable.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$this->getParametersForConfigurableArea('before-wrapper')
1616
)
1717

18-
<x-livewire-tables::wrapper :tableName="$tableName" :$primaryKey :$isTailwind :$isBootstrap :$isBootstrap4 :$isBootstrap5>
18+
<x-livewire-tables::wrapper :component="$this" :tableName="$tableName" :$primaryKey :$isTailwind :$isBootstrap :$isBootstrap4 :$isBootstrap5>
1919
@if($this->hasActions && !$this->showActionsInToolbar)
2020
<x-livewire-tables::includes.actions/>
2121
@endif

0 commit comments

Comments
 (0)