Ring

Ring is a data display component with a circular animation.

Documentation

Basic Ring

  • Ford
  • Audi
  • BMW
  • Fiat
  • Mercedes

Images with Custom Easing

Car Info
<style type="text/css">
    .image-ring .ui-ring-item {
        border:0 none;
    }

    .image-ring .ui-ring-item img {
        width: 100%;
    }

    .ui-ring button {
        font-size: 1em !important;
    }

    .value {
        font-weight: bold;
    }
</style>


<h:form id="form">
    <h3 style="margin-top: 0">Basic Ring</h3>
    <p:ring id="basic" value="#{ringView.cars}" var="car">
        <p:outputPanel style="text-align: center;" layout="block">
            #{car.brand}
            <br />
            <p:commandButton update=":form:carDetail" icon="pi pi-search" title="View" oncomplete="PF('carDialog').show();">
                <f:setPropertyActionListener value="#{car}" target="#{ringView.selectedCar}" />
            </p:commandButton>
        </p:outputPanel>
    </p:ring>

    <h3>Images with Custom Easing</h3>
    <p:ring id="custom" value="#{ringView.cars}" var="car" styleClass="image-ring" easing="easeInOutBack">
        <p:graphicImage id="img" name="/demo/images/car/#{car.brand}-big.gif" />
    </p:ring>

    <p:dialog header="Car Info" widgetVar="carDialog" modal="true" showEffect="fade" hideEffect="fade" resizable="false">
        <p:outputPanel id="carDetail" style="text-align:center;" layout="block">
            <p:panelGrid  columns="2" rendered="#{not empty ringView.selectedCar}" columnClasses="value">
                <f:facet name="header">
                    <p:graphicImage name="demo/images/car/#{ringView.selectedCar.brand}-big.gif" /> 
                </f:facet>

                <h:outputText value="Id:" />
                <h:outputText value="#{ringView.selectedCar.id}" />

                <h:outputText value="Year" />
                <h:outputText value="#{ringView.selectedCar.year}" />

                <h:outputText value="Brand: " />
                <h:outputText value="#{ringView.selectedCar.brand}" />

                <h:outputText value="Color:" />
                <h:outputText value="#{ringView.selectedCar.color}" style="color:#{ringView.selectedCar.color}" />
            </p:panelGrid>
        </p:outputPanel>
    </p:dialog>
</h:form>

FREE THEMES

Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.