facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

How to get data from onRowClick #392

Closed containerpope closed 8 years ago

containerpope commented 8 years ago

I have added the onRowClick functionality and it works, but i need to get the complete data of the row. How can i accomplish this?

dhirajbasukala commented 8 years ago

if you check the arguments in the onRowClick handler you'll get the rowIndex of the data, from which you can get the record data. hop it helps.

containerpope commented 8 years ago

Yes it did :) Thank you.

ryan-hamblin commented 8 years ago

For some reason I can't get any of this data. I only get an empty object, the rowIndex and the MouseEvent. I'm not sure what I can do with any of that at this point

pencilcheck commented 7 years ago

There is no API doc that listed the full argument that the func takes. I only find this information in a stackoverflow thread and it said it were only called with two parameters (event, index)

And none of that is useful, if I want to implement something like "edit-in-place"

mikechabot commented 7 years ago

I added #490 for this