Files
generic_table_examples/app/Livewire/Examples/TableWithActionColumnComponent.php
2025-03-12 00:41:31 -04:00

27 lines
561 B
PHP

<?php
namespace App\Livewire\Examples;
use App\Tables\TableWithActionColumn;
use Livewire\Attributes\On;
use Livewire\Component;
class TableWithActionColumnComponent extends Component
{
public function render()
{
return view('livewire.examples.with-action-column-component', [
'table' => TableWithActionColumn::class,
])
->extends('components.layouts.app')
->section('content');
}
#[On('edit')]
public function edit(int $productId)
{
dd('Editing product: ' . $productId);
}
}