Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

pitchayakit/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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages