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

add onRowClick prop to Table #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tvilon
Copy link

@tvilon tvilon commented Feb 16, 2017

onRowClick prop accepts a function. The function will be called on each row clicked and the row data will be passed along as first argument.

<Table 
  data={[
    {id: 1, name: 'Rich'},
    {id: 2, name: 'Phil'}
  ]}
  onRowClick={(data, event) => customFunction(data)}
/>

@djvs
Copy link

djvs commented Aug 25, 2017

@glittershark Is this gonna be merged?

@vadiminc
Copy link

Looks really worked solution

@hameltomor
Copy link

hameltomor commented Aug 25, 2017

@vadiminc, when will be a new version with this merge?

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

Successfully merging this pull request may close these issues.

4 participants