lemonlabs / nova-action-button-selectors
A Laravel Nova asset.
Installs: 1 453
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: ^7.3|^8.0
- laravel/nova: ~4.0|~5.0
README
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 forked from lednerb/nova-action-button-selectors
Requirements
php: ^8
laravel/nova: ^4|^5
How to install
composer require lemonlabs/nova-action-button-selectors
Usage
In your Action class define the following trait:
... use LemonLabs\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), ...