ryanw3b3r/nova-clickable-row

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel Nova clickable row.

Installs: 597

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

0.1.3 2019-01-10 09:16 UTC

This package is auto-updated.

Last update: 2019-02-06 11:26:27 UTC


README

Package that will enable default action on click or double click on resource table rows in Laravel Nova.

Installation

From your project's folder run:

composer require ryanw3b3r/nova-clickable-row

Customization

By default table rows will respond to single click event and will redirect to View action.

If you want to change single click to double click or redirect to Edit action instead of View then you can do so in your \App\Providers\NovaServiceProvider in boot method:

public function boot()
{
    Nova::serving(function (ServingNova $event) {
        Nova::provideToScript([
            'clickableRow' => [
                'event' => 'dblclick', // click or dblclick
                'action' => 'edit', // view or edit
            ]
        ]);
    });

    parent::boot();
}

License

The MIT License (MIT).