⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

add onRowClick prop to Table#362

Open
tvilon wants to merge 1 commit intoglittershark:masterfrom
tvilon:add-row-click
Open

add onRowClick prop to Table#362
tvilon wants to merge 1 commit intoglittershark:masterfrom
tvilon:add-row-click

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