React-virtualized: Handle Row Click

Created on 15 Dec 2015  路  7Comments  路  Source: bvaughn/react-virtualized

How would one go about responding to row clicks?

setting onClick handler on FlexTable or FlexColumn has no effect.

enhancement

Most helpful comment

@bvaughn onRowClick link is broken .

All 7 comments

That isn't currently supported but I would be happy to put together an updated release that provides onRowClick functionality to the table component. I'll try to get it released sometime today.

Version 2.2.0 has been released and supports an onRowClick property. Enjoy!

@bvaughn thanks for the quick turnaround!
as a token of appreciation I've submitted a pullrequest (#30) for dynamic rowClassName.
I needed it to implement proper row selection.

No problem :) Thank _you_ for contributing. I'll get that PR merged and released for you sometime soon.

You render the entire List row. You can add whatever event handlers you want to it.

Sorry to jump on this thread, but it comes up in most of my google searches. Is the recommended way to handle _onClick_ for List is on the _rowRender_? If so, you should totally drop a note about it in the docs.

@bvaughn onRowClick link is broken .

Was this page helpful?
0 / 5 - 0 ratings