F
Filament6mo ago
Prodex

Custom recordAction()

Hi, how can I trigger a custom action when a record is clicked? There is ->recordAction('myaction'); But this doesn't trigger it. Instead, the edit action is still triggered.
$table->actions([
Tables\Actions\Action::make('myaction')
->infolist([
Pages\ViewHardware::list(),
])
->slideOver()
->modalCancelAction(false)
->modalSubmitAction(false),
Tables\Actions\EditAction::make(),
])
$table->actions([
Tables\Actions\Action::make('myaction')
->infolist([
Pages\ViewHardware::list(),
])
->slideOver()
->modalCancelAction(false)
->modalSubmitAction(false),
Tables\Actions\EditAction::make(),
])
Solution:
try to add ->recordUrl(null)
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira6mo ago
try to add ->recordUrl(null)
Prodex
ProdexOP6mo ago
that worked, thanks!
Want results from more Discord servers?
Add your server