Table action that opens a modal with a table inside? (how to use `->table` on an action?)

I'm trying to make an action that would open a table with relationship items for viewing. I found the ->table method on the table Action class, but I'm not sure how to pass a table to it.
Tables\Actions\Action::make('View executions')
->table(Table::make(/* I'm not sure what to pass here, but it is required */)->columns([
// columns for a relationship items
])),
Tables\Actions\Action::make('View executions')
->table(Table::make(/* I'm not sure what to pass here, but it is required */)->columns([
// columns for a relationship items
])),
Any ideas? Thank you.
2 Replies
ziolupo
ziolupo12mo ago
I'm very interestin in this topic. It should be nice to understand event how to have back the row after clicking on it
Wbzy
Wbzy11mo ago
use ->modalContent(view('filament.modal.tablemodal')) like this and add livewire component inside
Want results from more Discord servers?
Add your server