Uploading content
This commit is contained in:
26
app/Livewire/Examples/TableWithActionColumnComponent.php
Normal file
26
app/Livewire/Examples/TableWithActionColumnComponent.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user