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

Table Row Click Handler #2655

Open
swsvindland opened this issue Dec 30, 2024 · 0 comments
Open

Table Row Click Handler #2655

swsvindland opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@swsvindland
Copy link

Description

I would love to have a function that i can pass down on the table component to handle row clicks.

Problem Statement

In my app i have a table that is displaying a list of items. Currently i have an edit button to handle a user clicking a row and updating the item but that takes up a lot of space, especially on mobile. I would like an option to click the table row so i can remove this button.

Proposed Solution or API

handleRowClick = (rowItem: T) => void

or

handleRowClick = (rowId: number) => void

Alternatives

No response

Additional Information

No response

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

No branches or pull requests

2 participants