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
try to add ->recordUrl(null)
Prodex
Prodex4w ago
that worked, thanks!