lexicon / nova-action-button-selectors
A Laravel Nova asset.
Installs: 56 176
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 4
Forks: 12
Open Issues: 5
Language:JavaScript
Requires
- php: ^7.3|^8.0
- laravel/nova: ~4.0
This package is auto-updated.
Last update: 2024-10-12 14:27:14 UTC
README
This package allow you to change Nova actions from dropdown to buttons.
Requirements
php: ^8
laravel/nova: ^4
How to install
composer require lexicon/nova-action-button-selectors
Index page with inline action
Usage
All Nova actions are changed from dropdown to buttons by default.
However, some actions you might need to show as dropdown which is default by Nova.
Add ActionAsButton trait at your Nova action
...
use Lexicon\ActionButtonSelector\ActionAsButton;
class NovaAction extends Action
{
use ActionAsButton, ....;
...
Add showInDropdown()
at your Nova resource
...
class NovaResource extends Resource {
...
public function actions(NovaRequest $request)
{
return [
Actions\NovaAction::make()->showInDropdown()
];
...
}
}