• 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

Stack

Stack displays menuitems in stacked format.

Stack Tag Documentation

Stack is a navigation component that mimics the stacks feature in Mac OS X.

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.
closeSpeed int false 300 Speed of the animation when closing the stack.
dir String false ltr Defines text direction, valid values are ltr and rtl.
expanded boolean false false Whether to display stack as expanded or not.
hideDelay int false 0 Delay in milliseconds before hiding the submenu, if 0 not hidden until document.click().
icon String false An optional image to contain stacked items.
model MenuModel false MenuModel instance to create menus programmatically
openSpeed int false 300 Speed of the animation when opening the stack.
showDelay int false 0 Delay in milliseconds before displaying the submenu. Default is 0 meaning immediate.
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
Stack is displayed at bottom right corner of the page. Clicking the basket icon toggles the items.

Usage


<style>
    .ui-stack {
        z-index: 1000;
    }
</style>


<div class="card">
    Stack is displayed at bottom right corner of the page. Clicking the basket icon toggles the items.
</div>

<h:form>
    <p:stack icon="/resources/demo/images/dock/stack.png" expanded="true">
        <p:menuitem value="Home" icon="/resources/demo/images/dock/home.png"/>
        <p:menuitem value="Music" icon="/resources/demo/images/dock/music.png"/>
        <p:menuitem value="Video" icon="/resources/demo/images/dock/video.png"/>
        <p:menuitem value="Email" icon="/resources/demo/images/dock/email.png"/>
        <p:menuitem value="Portfolio" icon="/resources/demo/images/dock/portfolio.png"/>
    </p:stack>
</h:form>