F
Filament6mo ago
NolanN

Triggering actions from a table column

Hey everyone! I'm relatively new to Filament looking for direction the best approach to solve my issue. I want to display a dollar amount in a table with buttons to step up or down the value. The amount of the step is determined by a related model and will have some extra logic to determine if the step is possible or not meaning that the buttons could potentially be disabled. Ideally the table column would end up looking something like I've attached. I've looked through the docs and watched some videos but I'm still not certain of the best approach. It seems likely that I'll need to create a custom table column to accomplish this but would I be able to use Actions within that custom column? Or maybe I need to create a Livewire action to handle this? I also see that I could create a column action but I don't think I don't see how I could group columns together to create the format that I'm looking for. I'd love some input! Thanks!
No description
1 Reply
awcodes
awcodes6mo ago
Yep, you'd need a custom column for this. Yes, you could use actions to handle the buttons, but you would need to make sure you have disabled row clicks for the table.