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)

enter image description here

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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -