Carousel

amx:carousel, amx:carouselItem

The Carousel component is typically used for displaying a collection of related content, usually images, that user can swipe thru. Optionally, the user may tap a carousel item to open that item (e.g. drill-down into a detailed view).

The Carousel component supports the following orientations:

This component is popular on tablets, but can also be used on phones.

Appearance

Appearance characteristics for this component.

Behavior

Common behaviors for this component.

Usage

Usage guidelines for this component.

Sample

AMX sample code for this component.

<amx:carousel id="carousel" var="item" auxiliaryOffset="#{pageFlowScope.pAuxiliaryOffset}" auxiliaryPopOut="#{pageFlowScope.pAuxiliaryPopOut}" auxiliaryScale="#{pageFlowScope.pAuxiliaryScale}" controlArea="#{pageFlowScope.pControlArea}" disabled="#{pageFlowScope.pDisabled}" displayItems="#{pageFlowScope.pDisplayItems}" halign="#{pageFlowScope.pHalign}" inlineStyle="#{pageFlowScope.pInlineStyle}" orientation="#{pageFlowScope.pOrientation}" shortDesc="#{pageFlowScope.pShortDesc}" styleClass="#{pageFlowScope.pStyleClass}" valign="#{pageFlowScope.pValign}" value="#{bindings.contacts.collectionModel}" rendered="#{pageFlowScope.pRendered}">
<amx:facet name="nodeStamp">
<amx:carouselItem id="ci1" text="#{item.first} #{item.last}" shortDesc="#{item.id}">
<amx:panelFormLayout id="panelFormLayout1" labelPosition="topStart" fieldHalign="start">
<amx:panelLabelAndMessage id="panelLabelAndMessage3" label="ID">
<amx:outputText value="#{item.id}" id="outputText3"/>
</amx:panelLabelAndMessage>
<amx:panelLabelAndMessage id="panelLabelAndMessage1" label="First">
<amx:outputText value="#{item.first}" id="outputText2"/>
</amx:panelLabelAndMessage>
<amx:panelLabelAndMessage id="panelLabelAndMessage2" label="Last">
<amx:outputText value="#{item.last}" id="outputText4"/>
</amx:panelLabelAndMessage>
<amx:panelLabelAndMessage id="panelLabelAndMessage4" label="Phone">
<amx:outputText value="#{item.phone}" id="outputText1"/>
</amx:panelLabelAndMessage>
</amx:panelFormLayout>
</amx:carouselItem>
</amx:facet>
</amx:carousel>

Related

Fig 1. iOS Carousel Full

 

Fig 2. Android Carousel Full

 

Fig 3. iOS Carousel Compact

 

Fig 4. Android Carousel Compact