reactjs - 如何根据列值向行添加背景颜色?
问题描述
我正在使用反应智能数据表,根据列值要为行添加背景色
链接到我正在使用的智能数据表
Table header
ID: {
text: 'ID',
transform: value => `${value}`,
className : 'column-Class',
},
name: {
text: 'Name',
transform: value => `${value}`,
},
Country: {
text: 'Country',
transform: value => `${value}`,
}
我尝试通过添加className
到列来添加背景颜色并且.css
文件中存在css
解决方案
推荐阅读
- scala - 如何在 Spark Scala 的 For 循环中动态创建多个数据帧
- xslt - 在 XSLT 中完全忽略/跳过/省略联合重复属性值
- javascript - 如何仅获取今天的电子邮件 - Gmail + Google 脚本
- python - psycopg2 将行作为列插入
- python - 如何展平嵌套的 JSON 文件以检索预期的字段
- python - 从值中检索一系列数据 Berkeley DB
- html - DT::datatable() 导出为 pdf,同时
为多行单元格保留 HTML - jquery - 预加载器 wordpress 最短时间
- java - 为什么声明一个新对象会给我一个语法错误?
- javascript - 如何获得像页面浏览量这样的报告,用户在谷歌分析上的特定页面上花费了多长时间?不是一般报告