我需要在Openxava中更改一个表中一行的背景颜色,例如,status = resolved应该变成绿色的整个带有字段的行,或者date field = currentDate应该变成黄色的一行。
到目前为止,我在custom.css中更改了背景颜色,并尝试使用naviox.css,,但它只更改了整个列表.ox-list的背景颜色。提前感谢!
发布于 2016-09-15 16:15:56
直接在定义的集合上使用@RowStyle批注:
@RowStyle(style = "row-highlight-rates", property = "notEqual", value = "true")
private List<Rate> rates;在custom.css上,我添加了行-突出显示-xxx:
tr.row-highlight-rates{
background-color: #e37d6f;
}
tr.row-highlight-rates:hover {
background-color: #d94b37;
}https://stackoverflow.com/questions/39466507
复制相似问题