-
Notifications
You must be signed in to change notification settings - Fork 222
provide ability to define onClick callback from table without explicitly defining children #125
Comments
+1 on this. Also it will be very useful to have |
Anybody made progress on this yet before I start to write it? |
@anyong nobody as far as I know. Let's call the event handlers themselves |
Question - I noticed that the Td cell has a onClick callback which is assigned to handleClick at init, I am working around this as follows var tdEvent = new CustomEvent( 'ReactableCellEvent' , { And catching at the parent node with And adding the same for the the Tr class However would love to have a proper onTrClick/OnTdClick though otherwise GREAT JOB!! |
👍 |
@glittershark As a related side question/discussion: any particular reason for calling the click handler |
@cklab it's mostly historical at this point. I would actually prefer to move all event handlers to |
@glittershark is there a p.s. this is incredibly awesome module 😄 |
Here is my take on adding onRowClick: #362 |
I don't see any documentation for this, but I do see a click callback on the reactable.td element. It would be great if we could define an onClick which propagates down to the individual td elements without having to explicitly supply children (ie an onClick on the actual table component, wherein I just supply data
<reactable data={ mydata } onClick={this.tableCellClicked}...
The text was updated successfully, but these errors were encountered: