jsf - Primefaces treetable selected rows background color -
in treetable when nodes selected, rows become grey.
how can customize primefaces keep them white when selected?
thank you!
(i got screenshot primefaces showcase http://www.primefaces.org/showcase/ui/treetablecheckbox.jsf;jsessionid=ajhrchz2hjv71n0eb48w238gx)
you need over-ride style class uses.
add below code in xhtml file
<style type="text/css"> /* set proper font size */ .ui-widget,.ui-widget .ui-widget { font-size: 90% !important; } /* change background color when selectedis-->*/ .ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight { background-color: green; } </style>
try , should work.
how find out :
using firefox browser right click
on tree , click "inspect element(q)"
. display style using for. showed me above tags override it.
you need learn little css
.
Comments
Post a Comment