0

How can I remove the Specify Icon in Primefaces? I tried the following code:

<p:menbar>
<p:submenu label="File">
......
</p:submenu>
</p:menubar>

On the right, the label of the submenu's Triangle Icon, it's necessary for me to style the icon.

.ui-icon{display:none;}

Unfortunately, it will affect all icons. I don't know why display: none is only applied to Specify Icon.

Anand MS
  • 94
  • 1
  • 13
  • Please take some time to learn CSS. It is one of the foundations of web development. And since JSF is in this regard nothing more than an html/css generator, you should learn those basics before doing actual full blown development – Kukeltje Apr 30 '15 at 07:19

2 Answers2

1

Try this !!

<p:menubar>
   <p:submenu label="File" styleClass="submenu">
    ......
   </p:submenu> 
</p:menubar>

Use the CSS rule below:

.submenu .ui-menuitem-link > .ui-icon-triangle-1-s{
  display: none !important;
}
0

Use the "styleClass" attribute of p:submenu to apply the CSS rule on p:submenu.

<p:menubar>
    <p:submenu label="File" styleClass="submenu">
    ......
    </p:submenu>
</p:menubar>

Use following CSS rule:

.submenu .ui-icon-triangle-1-s{
    display: none;
}
Bhavin Panchani
  • 1,332
  • 11
  • 17