Open elnasnato opened 1 week ago
1.35.8
4.12.10
3.5.6
Firefox
❌ Don't paste your entire component code, it is hard to debug it.
✅ Paste only the MINIMAL code that reproduces your issue (PHP/BLADE).
❌ Don't paste code as screenshot.
✅ Paste code as formatted markdown.
PHP
it is what file inside <!-- EXPANSION SLOT --> @if($expandable) <tr wire:key="{{ $uuid }}-{{ $k }}--expand" class="!bg-inherit" :class="isExpanded({{ $getKeyValue($row, 'expandableKey') }}) || 'hidden'"> <td :colspan="colspanSize"> {{ $expansion($row) }} </td> </tr> @endif and it comes from terminal problems tab [{ "resource": "/d:/site/insys/storage/framework/views/f087703367621e15709f8e3a4b525fab.blade.php", "owner": "_generated_diagnostic_collection_name_#2", "code": "PHP2014", "severity": 8, "message": "Syntax error: unexpected token '{'", "source": "PHP", "startLineNumber": 195, "startColumn": 108, "endLineNumber": 195, "endColumn": 109 }]
HTML/Blade
and how i use it in livewire component @php $users = App\Models\User::query()->take(5)->get(); $headers = [ ['key' => 'id', 'label' => '#'], ['key' => 'name', 'label' => 'Nice Name'], ]; @endphp <div> <x-table :headers="$headers" :rows="$users" striped @row-click="alert($event.detail.name)" /> </div>
What appears ? Please, send a screenshot.
Your example don’t even use expansion feature.
maryUI version
1.35.8
daisyUI version
4.12.10
Livewire version
3.5.6
What browsers are affected?
Firefox
What happened?
❌ Don't paste your entire component code, it is hard to debug it.
✅ Paste only the MINIMAL code that reproduces your issue (PHP/BLADE).
❌ Don't paste code as screenshot.
✅ Paste code as formatted markdown.
PHP
HTML/Blade