Material-ui: onRowSelection get data based on row number

Created on 8 Jun 2016  路  1Comment  路  Source: mui-org/material-ui

Problem description

i'm getting the row numbers of the selected items just fine. But how to get the data related to these row numbers?

   {this.tableData().map( (row, index) => (
              <TableRow key={row._id} value={row.selected} >
                <TableRowColumn>{row._id}</TableRowColumn>
                <TableRowColumn>unknown</TableRowColumn>
                <TableRowColumn>{row.status && row.status.callDetails && row.status.callDetails.orgURL}</TableRowColumn>
                <TableRowColumn> <StatusButton statusOnline={row.status && row.status.online} inCall={row.status} /> </TableRowColumn>
              </TableRow>
              ))}

i hoped to define the row numbers my with key={row._id} but the default keys 0,1,2,3,4,5 are used instead of something like TcGmekfvsPxsga5B5 . How to fix this?

Steps to reproduce

Versions

  • Material-UI: 14.4
  • React: 14.X
  • Browser: chrome

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericraffin picture ericraffin  路  3Comments

finaiized picture finaiized  路  3Comments

rbozan picture rbozan  路  3Comments

zabojad picture zabojad  路  3Comments

reflog picture reflog  路  3Comments