-
Notifications
You must be signed in to change notification settings - Fork 587
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
UTable row click event UI3 #3010
Comments
@richard-hernandez-dev . Forgive me if I overstep or presume, but isn't |
There's no event on the row click for the moment, but you can already implement features to select rows from the table 🤔 What exactly would you need that for? |
I want to add an event so that when I press a row, it retrieves the id and uses it in a function. Here's an example implementation:
I want to add an event that triggers when I press a row, allowing me to retrieve the id of the row and use it in a function. However, I don't want to update the selection itself. Here's an example in V2: |
I believe these are different things. What @richard-hernandez-dev meant is that he'd like a trigger similar to In version 3, we have |
Ok, I see this could be simple enough to add. There are plans to add more Tanstack features; however, I haven't seen a feature related to clicking on a row 🤔 I'll see about maybe making a PR! |
Possibly related with #2822. |
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
3.0.0-alpha.10
Reproduction
<UTable
:data="data"
:columns="columnsTable"
@select="select"
/>
Description
In Nuxt UI v3, the component does not provide any trigger event when clicking on a table row. In contrast, the v2 version included the @select event, which allowed developers to handle row clicks effectively. This regression impacts the ability to implement common interaction patterns, such as handling row selection or performing actions based on user clicks.
Does Nuxt UI v3 have an event similar to the @select event from v2 for the component? Specifically, is there a way to trigger an event when a table row is clicked?
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: