Skip to content

How to disable row clicks? #4390

Answered by davidhemphill
RealityGamin asked this question in Q&A
Discussion options

You must be logged in to vote

Set the clickAction property on the base Resource Nova publishes during installation:

<?php

namespace App\Nova;

use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Resource as NovaResource;

abstract class Resource extends NovaResource
{

    /**
     * The click action to use when clicking on the resource in the table.
     * Can be one of: 'detail' (default), 'edit', 'select', 'preview', or 'ignore'.
     *
     * @var string
     */
    public static $clickAction = 'ignore';

    // ...
}

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@harisnodesol
Comment options

Comment options

You must be logged in to vote
1 reply
@sfinktah
Comment options

Answer selected by davidhemphill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #4388 on June 09, 2022 22:45.