Locale

Language
English
English
English
French
German
German
Italian
Korean
Spanish
Catalan
Dutch
Portuguese
Portuguese
Arabic
Arabic
Bulgarian
Czech
Greek
Persian
Finnish
Danish
Hindi
Indonesian
Croatian
Japanese
Hungarian
Hebrew
Georgian
Central Kurdish
Khmer
Kyrgyz
Kazakh
Lithuanian
Latvian
Malay
Norwegian
Polish
Romanian
Russian
Slovak
Slovenian
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Free Themes

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

Saga Saga
Vela Vela
Arya Arya

Legacy Free Themes

Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink
Nova Nova
Nova Nova Alt
Nova Nova Accent

Spinner

Spinner is used to provide an input with increment and decrement buttons on an input text.


<div class="card">
    <h:form>
        <div class="ui-fluid formgrid grid">
            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Basic Spinner"/>
                <p:spinner id="basic" value="#{spinnerView.number1}"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Step Factor"/>
                <p:spinner id="step" value="#{spinnerView.number2}" stepFactor="0.25"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Min/Max"/>
                <p:spinner id="minMax" value="#{spinnerView.number3}" min="0" max="100"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Rotate"/>
                <p:spinner id="rotate" value="#{spinnerView.number6}" min="0" max="10" rotate="true"/>
            </div>
          
            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Rotate + No Wheel"/>
                <p:spinner id="rotateNoWheel" value="#{spinnerView.number6}" min="0" max="10" rotate="true" modifyValueOnWheel="false"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Rounded"/>
                <p:spinner id="rounded" value="#{spinnerView.number7}" min="0" max="55" stepFactor="5" round="true"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Prefix"/>
                <p:spinner id="prefix" value="#{spinnerView.number4}" prefix="$" min="10" max="50"/>
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Horizontal"/>
                <p:spinner id="horizontal" value="#{spinnerView.number8}" buttons="horizontal" />
            </div>

            <div class="field col-12 md:col-4">
                <p:outputLabel for="@next" value="Horizontal after"/>
                <p:spinner id="horizontalAfter" value="#{spinnerView.number9}" buttons="horizontal-after" 
                           upButtonStyleClass="ui-button-success" downButtonStyleClass="ui-button-danger"/>
            </div>
        </div>

        <div class="ui-fluid formgrid grid">
            <div class="field col-12 md:col-1">
                <p:outputLabel for="@next" value="Vertical"/>
                <p:spinner id="vertical" value="#{spinnerView.number10}" buttons="vertical"
                           upButtonStyleClass="ui-button-secondary" downButtonStyleClass="ui-button-secondary"/>
            </div>
        </div>
    </h:form>
</div>