I develop in React.js, and I'm using React-Table. I need to get cell value in a specific column.
I have made a reference to the table ponent to access its internal state.
but I don't know where to find the cell value from a column.
Is it possible to get cell value on a column?
I develop in React.js, and I'm using React-Table. I need to get cell value in a specific column.
I have made a reference to the table ponent to access its internal state.
but I don't know where to find the cell value from a column.
Is it possible to get cell value on a column?
Share Improve this question asked Mar 26, 2018 at 9:33 user3476614user3476614 6072 gold badges10 silver badges31 bronze badges2 Answers
Reset to default 8When you are creating the columns, for the Cell section you can specify a function which will read the value of the cell
Cell: v => console.log(v.value)
Columns
For React table v8 or above, the cell API changes to getValue()
function instead of value
cell: v => <i> { v.getValue() } </i>