Table actions / alpine / livewire UI
Hi,
I've got a table that has accept and reject actions on each row. What I'd like to do is only show the actions on the first row UNTIL an action has been clicked. If accept or reject is clicked, then the actions for the 2nd row should appear and so on. It might be worth adding that my table is in a custom component in a modal.
I'm struggling to know where to start with this. Usually, (without using a front end framework) I'd just assign some classes to the table and actions and hide / show based on interactions quite simply.
I'm new to livewire / alpine but have been using filament for a few months. Just watched an alpine series on Laracast but that doesn't show integration with Filament obviously.
I added x-data to my component wrapper in the hope that I'd be able to hook in to the table there but I can't seem to hook into the table.
Any pointers in the right direction would be great.
I've got a table that has accept and reject actions on each row. What I'd like to do is only show the actions on the first row UNTIL an action has been clicked. If accept or reject is clicked, then the actions for the 2nd row should appear and so on. It might be worth adding that my table is in a custom component in a modal.
I'm struggling to know where to start with this. Usually, (without using a front end framework) I'd just assign some classes to the table and actions and hide / show based on interactions quite simply.
I'm new to livewire / alpine but have been using filament for a few months. Just watched an alpine series on Laracast but that doesn't show integration with Filament obviously.
I added x-data to my component wrapper in the hope that I'd be able to hook in to the table there but I can't seem to hook into the table.
Any pointers in the right direction would be great.
