Page 1 of 1

badge in MenuItem

Posted: 19 Sep 2018, 16:15
by tooot
Hi,

How can add <f:attribute name="badge" value="8" /> to <p:menuitem

Is there any way ?

Re: badge in MenuItem

Posted: 24 Sep 2018, 13:01
by huseyinT

Re: badge in MenuItem

Posted: 26 Sep 2018, 07:20
by tooot
Thank you for reply , But actually I'm talking about UI not server side coding .

Code: Select all

<p:menuitem 
								
								value="Waiting" icon="fa fa-fw fa-list-alt"
								outcome="/cp/beneficiary/benefWFComittee" >
								<f:attribute name="acpProductParam" value="1252"/>
								</p:menuitem>
for code above , there is nothing display for value 1252.

Re: badge in MenuItem

Posted: 27 Sep 2018, 09:51
by aragorn
Added this feature for next version. Exp;

Code: Select all

...
                      <p:submenu id="om_customization" label="Menu Modes" icon="fa fa-fw fa-bars">
                            <f:attribute name="badge" value="8" />
                            <p:menuitem id="custom3" value="Static Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('static')}" ajax="false">
                                <f:attribute name="badge" value="4" />
                            </p:menuitem>
                            <p:menuitem id="custom4" value="Overlay Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('overlay')}" ajax="false"/>
                            <p:menuitem id="custom5" value="Horizontal Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('horizontal')}" ajax="false"/>
                        </p:submenu>
 ...
Best Regards,

Re: badge in MenuItem

Posted: 07 Oct 2018, 16:18
by tooot
Thank you very much

Re: badge in MenuItem

Posted: 08 Oct 2018, 10:26
by aragorn
You're welcome!