Added an example with two tables in the same parent component

This commit is contained in:
David
2025-03-31 01:19:15 -04:00
parent 69a87b3a5c
commit 63779f8bad
6 changed files with 89 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Livewire\Examples;
use App\Tables\DepartmentTable;
use App\Tables\TableWithDragDropOrdering;
use Livewire\Component;
class WithTwoTablesComponent extends Component
{
public function render()
{
return view('livewire.examples.with-two-tables-component', [
'products' => TableWithDragDropOrdering::class,
'departments' => DepartmentTable::class
])
->extends('components.layouts.app')
->section('content');
}
}