AllenFang / AllenFang/react-bootstrap-table

How to access dataField in dataFormat?

Open
#1,802 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

I have below code
`render() {
const col = [ 'id', 'name', 'price' ];
return (

{ col.map(name => { name }) }

);
}`

Now I want to add **dataFormat** to **TableHeaderColumn**. How can I acces dataField in dataFormat to know the key?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.