Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Row click action #615

Open
nickolasjadams opened this issue Jan 11, 2024 · 2 comments
Open

Feature Request: Row click action #615

nickolasjadams opened this issue Jan 11, 2024 · 2 comments

Comments

@nickolasjadams
Copy link

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!

@arm092
Copy link

arm092 commented Feb 15, 2024

You can do it for my forked version if you want, create PR, and I will check, approve and merge it. And we will have this feature in the next release.

https://github.com/arm092/livewire-datatables

@arm092
Copy link

arm092 commented Feb 15, 2024

But how should work editable cells in the table in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants