Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

[QUESTION] Could I trigger click event on a single row? #372

Open
ilyablbnv opened this issue Apr 18, 2017 · 3 comments
Open

[QUESTION] Could I trigger click event on a single row? #372

ilyablbnv opened this issue Apr 18, 2017 · 3 comments

Comments

@ilyablbnv
Copy link

So I fetch my JSON data from the server and use reactable library to display as a table. Could I trigger a click event on a single row and pass _id ? Previously I used a traditional _map loop so is there a possibility ? Thanks in advance.

@andrewlorenz
Copy link

Yes, this table seems fully featured for displaying data, but not for manipulating it! There appears to be not a jot of support for anything that would allow you to have a (say), edit or delete button against each row. What an utterly huge shame it doesn't.

@ssorallen
Copy link

You can add an onClick callback to the <Tr> component like you'd expect:

{rows.map(_id =>
  <Tr onClick={this.handleTrClick.bind(this, _id)}/>
)}

@kdzapp
Copy link

kdzapp commented Apr 8, 2018

Doesn't work for me

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

No branches or pull requests

4 participants