Closed tvilon closed 7 years ago
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)} />
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.