<div>
<ReactTable
data={this.state.listFruitData}
columns={columns}
defaultPageSize={10}
getTrProps={onRowClick}
/>
</div>
Run Code Online (Sandbox Code Playgroud)
小智 7
You just need to add a style for cursor From your onRowClick function you can return a style object along with the onClick handler. In your onRowClick
onRowClick = () => {
return {
onClick: () => {}, // your onClick handler
style: {
cursor: 'pointer'
},
}
}
Run Code Online (Sandbox Code Playgroud)
Hope this helps
| 归档时间: |
|
| 查看次数: |
2832 次 |
| 最近记录: |