Skip to content

This package allow you to change Nova actions from dropdown to buttons.

License

Notifications You must be signed in to change notification settings

Onoweb/nova-action-button-selector

 
 

Repository files navigation

Laravel Nova action button selector

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

Detail page example_1

Index page with inline action example_2

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()
        ];
        ...
    }
}

About

This package allow you to change Nova actions from dropdown to buttons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.1%
  • Vue 22.1%
  • Other 0.8%