SlideMenu – menu in iPod style

A slide menu displays nested submenus as slides with animation similar to the iPod menu. A slide menu features the same common behaviors as every PrimeFaces' menu. It consists of (nested) submenus and menu items that can be built declaratively or programmatically by the model. The main difference to other menu types is a slide animation when displaying submenus. Positioning of the slide menu is static by default, but it can also be positioned relative to a trigger that shows the menu.

In this recipe, we will develop a slide menu with a button acting as the trigger. When the user pushes the button, the menu will be displayed in an overlay.

How to do it...

We will take p:commandButton as trigger. The p:slideMenu tag, ...

Get PrimeFaces Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.