Skip to content

Feature Request: Row click action #615

@nickolasjadams

Description

@nickolasjadams

It's possible to add a link to a column. But you have to call the method off a column.

In simple use cases, there are no columns to call that method on because we just create the datatable with a simple tag.

<livewire:datatable
        model="App\Models\Thing"
        ...
/>

The extra amount of work just to add a link to a row is more than I hoped for.

What if we could do this

<livewire:datatable
        model="App\Models\Thing"
        rowLink="thing/{id}"
        ...
/>

I could work on this feature, but I'd like feedback on whether it would be welcomed or if the creators would like it done in a different way.

Thanks for the great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions