0
引导表模块上的数据显示我的网页上的一些数据,我想打从相关数据的dataField值的链接,这里有一个片段:如何从相关的数据对象发生反应的自举表
这里是我的JSON数据:
{"person": { "name" : "jhon", "personLink" : "jhonlink" },{ "name" : "doe", "personLink" : "doelink" } }
这里是我的功能代码:
myLink = (cell) => {
const urlString = '/person/detail/' + cell;
return (
<Link to={urlString} >
{cell}
</Link>
)}
这里有一个片段我渲染:
<BootstrapTable
data={person}
striped
hover
pagination
remote
>
<TableHeaderColumn
isKey
dataField="name"
dataFormat={this.personLink}
>
Foo
</TableHeaderColumn>
</BootstrapTable>
是否可以从“personLink”获取值?因为我获得了“名称”值作为链接。
要提取的personLink价值在哪里。人也应该是一个阵列的权利? –
我只是编辑我的问题,我想提取“personLink”myLink函数,作为paremeter(细胞) – user3547367