2 Replies Latest reply on Feb 25, 2010 6:29 AM by ilya_shaikovsky

    panelMenu : set enabled Item Icon/Style

    ptr83

      Hello

       

      I would like to change the icon or the style of the item that is enabled in a panelMenu.

       

      For example on the demo, it appears with the same icon, the only change is that it is in italic. It is not really clear IMO, so I would like to put it in color, bold, or change the icon of the item that is selected.

       

      See the attached image if not clear.

       

      Thanks

        • 1. Re: panelMenu : set enabled Item Icon/Style
          ptr83

          Ok sorry I found that you can put this in your jsp :

           

          <style type="text/css">
          .rich-pmenu-selected-element {
          background-color: #ffcccc;
          font-weight: bold;
          }
          </style>

           

          The only thing that is a bit "not nice" is that it change also the style for the groupItems ... If there is a way not to change the grouItems stle in the same time, please let me know

          • 2. Re: panelMenu : set enabled Item Icon/Style
            ilya_shaikovsky

            you could use simple classes selectors to make groups and items selected looks different:

             

            .rich-pmenu-group .rich-pmenu-selected-element{
            ///styles
            }
            

            and

            .rich-pmenu-item .rich-pmenu-selected-element{
            ///styles
            }