assurdeal/nova-action-button-selectors is a Laravel package for a laravel nova asset..
It currently has 0 GitHub stars and 7.760 downloads on Packagist (latest version v1.1.0).
Install it with composer require assurdeal/nova-action-button-selectors.
Discover more Laravel packages by assurdeal
or browse all Laravel packages to compare alternatives.
Last updated
This package allows you to add buttons for Nova actions on the detail page instead having them all within the dropdown menu.
This package is based on the original code from pitchayakit/nova-action-button-selector but differs in usage:
Instead of automatically showing all actions as buttons, it allows you to add the ShowAsButton trait to the actions you want to display as buttons.
Also it fixes some styling issues.
php: ^8laravel/nova: ^4composer require assurdeal/nova-action-button-selectors
Detail page

Index page with inline action

In your Action class define the following trait:
...
use Assurdeal\ActionButtonSelector\ShowAsButton;
class MyAction extends Action
{
use InteractsWithQueue, Queueable;
use ShowAsButton;
...
If you want to hide the button on some Detail pages, use the following method in the Nova Model's actions array:
...
public function actions(NovaRequest $request)
{
return [
MyCustomAction::make()
->onlyOnDetail()
->withoutConfirmation()
->showAsButton(false),
...