F
Filament8mo ago
Tjiel

Action on press of record in table?

I have the following actions in my AssetResource:
->actions([
Tables\Actions\Action::make('action')
->label('Action')
->translateLabel()
->action(function () {
// Action logic
}),
DefaultActionGroup::make(),
])
->actions([
Tables\Actions\Action::make('action')
->label('Action')
->translateLabel()
->action(function () {
// Action logic
}),
DefaultActionGroup::make(),
])
Is there a way that instead of creating a text where, when pressed on, performs the action. You can just click on the row of the record. Currently whenever I press on the record it just goes to the view page.
2 Replies
Want results from more Discord servers?
Add your server