Display Action Text in Table as Button
Using the following code below, is there a simple way to change the current Icon and Text for the Action to a button instead without having to create a custom column?
protected function getTableActions(): array
{
return [
Action::make('updateShipping')
->action(function (Model $record, array $data): void {
$record->ConfirmationNumber = $data['ConfirmationNumber'];
$record->save();
\Mail::to($record->EmailAddress)->send(new \App\Mail\TrackingNumber($record));
})
->icon('heroicon-o-truck')
->label('SHIP')
->form([
TextInput::make('ConfirmationNumber')
->label('Delivery Confirmation #')
->required(),
])
];
} protected function getTableActions(): array
{
return [
Action::make('updateShipping')
->action(function (Model $record, array $data): void {
$record->ConfirmationNumber = $data['ConfirmationNumber'];
$record->save();
\Mail::to($record->EmailAddress)->send(new \App\Mail\TrackingNumber($record));
})
->icon('heroicon-o-truck')
->label('SHIP')
->form([
TextInput::make('ConfirmationNumber')
->label('Delivery Confirmation #')
->required(),
])
];
}