Hi,
How can add <f:attribute name="badge" value="8" /> to <p:menuitem
Is there any way ?
badge in MenuItem
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
PrimeFaces 5.3 | JBoss 7 AS | FireFox|
Thank you for reply , But actually I'm talking about UI not server side coding .
for code above , there is nothing display for value 1252.
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>
PrimeFaces 5.3 | JBoss 7 AS | FireFox|
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Added this feature for next version. Exp;
Best Regards,
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>
...
Github Profile: https://github.com/mertsincan
Thank you very much
PrimeFaces 5.3 | JBoss 7 AS | FireFox|
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 15 guests