How to get cell value on React-Table?

这一生的挚爱 提交于 2021-01-27 05:30:23

问题


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 component 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?


回答1:


When 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



来源:https://stackoverflow.com/questions/49488184/how-to-get-cell-value-on-react-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!