Page 1 of 1

Which is the menu used in Volt Page?

Posted: 20 May 2016, 00:48
by Alidasoftware
Hi,
I´m interested in get a menu style like the volt page (The inline left menu in preview volt page http://www.primefaces.org/volt/ ). Could you please tell me which is the type of menu used on the page and the volt style class applied?

Thanks,

Re: Which is the menu used in Volt Page?

Posted: 20 May 2016, 13:22
by aragorn
It is not a primefaces component. We've created a custom menu for layout by extending BaseMenuRenderer.java. Therefore, you can not use this menu in page like a primefaces component. You can only use it at left position of layout.

Code: Select all

<ui:composition 
    ...
    xmlns:p="http://primefaces.org/ui"
    xmlns:pv="http://primefaces.org/volt">

...
// Volt Layout Menu //

    <pv:menu>

        <p:submenu id="rm_dashboards" label="Dashboards" icon="icon-leaf">
            <p:menuitem id="rm_db_landing" value="Your Promotion Page" icon="icon-leaf" outcome="/promotion-page"/>
            <p:menuitem id="rm_db_v1" value="Dashboard V1" icon="icon-leaf" outcome="/dashboard"/>
            <p:menuitem id="rm_db_v2" value="Dashboard V2" icon="icon-leaf" outcome="/dashboard2"/>
        </p:submenu>
         ....
    </pv:menu>

</ui:composition>