最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to get cell value on React-Table? - Stack Overflow

programmeradmin4浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 8

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

For React table v8 or above, the cell API changes to getValue() function instead of value

cell: v => <i> { v.getValue() } </i>
发布评论

评论列表(0)

  1. 暂无评论