Dispatch on table row click
I want to dispatch a event when a Table row is clicked.
I tried using the
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:
And then in your livewire component you add:
On your table you add:
And then in your livewire component you add: