Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Action Button Selector

Installation Instructions

Laravel Nova action button selector

Packagist Version Packagist Downloads Codeberg

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.

Requirements

  • php: ^8
  • laravel/nova: ^4

How to install

composer require lednerb/nova-action-button-selectors

Detail page example_1

Index page with inline action example_2

Usage

In your Action class define the following trait:

...
use Lednerb\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),

            ...

Readme

Readme not found. Refer to the project website: https://codeberg.org/Lednerb/nova-action-button-selector

Screenshots

Back to Top
Added 3 years ago
Last updated 2 Years Ago
Version v2.0.6
Nova Version ~4.0
Composer
lednerb/nova-action-button-selectors
GitHub stars 0
Packagist downloads 340,982

Favorites

4 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Contributors

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas