F
Filament16mo ago
eazy

Dispatch on table row click

I want to dispatch a event when a Table row is clicked.
->recordAction(fn () => $this->dispatch('openFillAction'))
->recordAction(fn () => $this->dispatch('openFillAction'))
I tried using the recordAction but that doesn't seem to work. Is there another easy way I can do this?
Solution:
Okay I fixed this 🥲 Its actually pretty easy but it took me so long somehow, maybe this function needs to be documented? On your table you add: ``` ->recordAction('sender')...
Jump to solution
1 Reply
Solution
eazy
eazy16mo ago
Okay I fixed this 🥲 Its actually pretty easy but it took me so long somehow, maybe this function needs to be documented? On your table you add:
->recordAction('sender')
->recordAction('sender')
And then in your livewire component you add:
public function sender()
{
$this->dispatch('openFillAction');
}
public function sender()
{
$this->dispatch('openFillAction');
}
Want results from more Discord servers?
Add your server