Alloy Showcase

alloy:popover

Popover is a UIPanel component that that renders a <div> element that is initially styled with display:none so that it can be popped-up as an overlay by calling the JavaScript API. Since it extends HtmlPanelGroup, it supports all the features of h:panelGroup.

General Usage

The component must be associated with another component (such as alloy:button) via the for attribute, so that the popover can be displayed nearby. When dismissible=true the popover can be dismissed by clicking outside of it.

JavaScript API:
  • show() causes the popover to be visible
  • hide() causes the popover to be invisible
  • toggle() causes the popover visibility to be toggled

Source Code

Liferay Faces Alloy 3.0.1 + Liferay Faces Bridge Implementation 4.1.0 + Showcase Common 3.0.1 + Liferay Faces Util 3.1.0 + Mojarra 2.2.14