【发布时间】:2018-09-12 20:26:42
【问题描述】:
我有以下代码用于检索点击行的数据:
<ReactTable
getTdProps={(state, rowInfo, column, instance) => {
return {
onClick: (e, handleOriginal) => {
if (typeof rowInfo !== "undefined") this.rowClick(rowInfo.row.RecipeName);
if (handleOriginal) {
handleOriginal()
}
}
}
}}
如何更改点击行的背景颜色?或者突出显示点击的行的最佳方式是什么?
【问题讨论】:
标签: react-table