• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

PanelMenu

PanelMenu is a hybrid of accordion-tree components.

PanelMenu Tag Documentation

PanelMenu is a hybrid component of accordionPanel and tree components.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
autoDisplay boolean false true Defines whether the first level of submenus will be displayed on mouseover or click event.
dir String false ltr Defines text direction, valid values are ltr and rtl.
hideDelay int false 0 Delay in milliseconds before hiding the submenu, if 0 not hidden until document.click().
model MenuModel false MenuModel instance to build menu dynamically.
multiple boolean false true Allows multiple root submenus to be expanded at the same time.
showDelay int false 0 Delay in milliseconds before displaying the submenu. Default is 0 meaning immediate.
stateful boolean false true Menu state is saved in HTML5 LocalStorage.
statefulGlobal boolean false false When enabled, menu state is saved globally across pages. If disabled then state is stored per view/page.
style String false Inline style of the component.
styleClass String false Style class of the component.
tabindex String false 0 Position of the element in the tabbing order.
toggleEvent String false Event to toggle the submenus, valid values are "hover" and "click".
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc

Usage


<div class="card">
    <h:form>
        <p:growl>
            <p:autoUpdate/>
        </p:growl>

        <p:panelMenu style="width:300px">
            <p:submenu label="Options" icon="pi pi-wrench">
                <p:menuitem value="Save (Non-Ajax)" action="#{menuView.save}" ajax="false"
                            icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" icon="pi pi-refresh"/>
                <p:menuitem value="Delete" action="#{menuView.delete}" icon="pi pi-times"/>
            </p:submenu>
            <p:submenu label="Navigations">
                <p:menuitem value="Website" url="http://www.primefaces.org" icon="pi pi-external-link"/>
                <p:menuitem value="Internal" outcome="/ui/menu/menubar" icon="pi pi-upload"/>
            </p:submenu>
        </p:panelMenu>
    </h:form>
</div>