[英]Primefaces Datatable coloring row
closeItem返回Boolean
。 我将此添加到dataTable
rowStyleClass="#{(res.closedItem) eq true ? 'Closed' : null}"
我的CSS
<style type="text/css">
.Closed
{
background-color: #6CE26C !important;
background-image: none !important;
color: #000000 !important;
}
</style>
但这不起作用,请帮助。
尝试:
rowStyleClass="#{res.closedItem ? 'Closed' : ''}"
也许您可以使用PrimeFaces框架?
http://www.primefaces.org/showcase/ui/data/datatable/rowColor.xhtml
看一下,还有一些非常不错的附加功能
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.