Locale

Change the locale of the datepicker, schedule and client side validation messages.

Language
English
English
English
French
German
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
Serbian
Swedish
Thai
Turkish
Ukrainian
Vietnamese
Chinese
Chinese

Input Style

Themes

PrimeOne
Saga Saga
Vela Vela
Arya Arya
Bootstrap
bootstrap4-blue-light Bootstrap Blue
bootstrap4-purple-light Bootstrap Purple
bootstrap4-blue-dark Bootstrap Blue
bootstrap4-purple-dark Bootstrap Purple
Material Design
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple
Material Design Compact
material-indigo-light Indigo
material-deeppurple-light' Deep Purple
material-indigo-dark Indigo
material-deeppurple-dark' Deep Purple

Timeline Grouping and mergeable events

Grouping events can be useful for example when showing availability of multiple people, rooms, or other resources next to each other.

Timeline Grouping
Timeline Grouping With Vertical Scroll and zoomKey(ctrlKey)

<style>
    div.vis-item-content {
        padding: 4px;
        border-radius: 2px;
        -moz-border-radius: 2px;
    }

    div.vis-item.vis-item-range {
        border-width: 0;
    }

    #overlappedOrders {
        margin-top: 20px;
        width: 100%;
    }

    #overlappedOrders .ui-chkbox {
        vertical-align: middle;
        margin: 3px 5px;
    }
</style>


<h:form id="form">
    <p:growl id="growl" showSummary="true" showDetail="false">
        <p:autoUpdate/>
    </p:growl>
    <div class="card">
        <h5>Timeline Grouping</h5>
        <p:timeline id="timeline" value="#{groupingTimelineView.model}" var="order" varGroup="truck"
                    editable="true" eventMargin="0" eventMarginAxis="0" stackEvents="false"
                    orientationAxis="top" widgetVar="timelineWdgt">
            <p:ajax event="changed" update="@none" listener="#{groupingTimelineView.onChange}"/>
            <p:ajax event="delete" update="@none" listener="#{groupingTimelineView.onDelete}"/>
            <p:ajax event="add" update="@none" onstart="PF('timelineWdgt').cancelAdd()"/>

            <f:facet name="group">
                <h:graphicImage library="demo" name="images/timeline/truck.png" style="vertical-align:middle;"
                                alt="Truck"/>
                <h:outputText value="Truck #{truck.code}" style="font-weight:bold;"/>
            </f:facet>

            <h:graphicImage library="demo" name="#{order.imagePath}" rendered="#{not empty order.imagePath}"
                            style="display:inline; vertical-align:middle;" alt="Order"/>
            <h:outputText value="Order #{order.number}"/>
        </p:timeline>
    </div>

    <div class="card">
        <h5>Timeline Grouping With Vertical Scroll and zoomKey(ctrlKey) </h5>

        <p:timeline id="timelineVerticalScroll" value="#{groupingTimelineView.model2}" var="order"
                    varGroup="truck" zoomKey="ctrlKey"
                    editable="true" eventMargin="0" eventMarginAxis="0" stackEvents="false"
                    orientationAxis="top" orientationItem="top" maxHeight="400" horizontalScroll="false"
                    verticalScroll="true" widgetVar="timelineWdgt2">
            <f:facet name="group">
                <h:graphicImage library="demo" name="images/timeline/truck.png" style="vertical-align:middle;"
                                alt="Truck"/>
                <h:outputText value="Truck #{truck.code}" style="font-weight:bold;"/>
            </f:facet>

            <h:graphicImage library="demo" name="#{order.imagePath}" rendered="#{not empty order.imagePath}"
                            style="display:inline; vertical-align:middle;" alt="Order"/>
            <h:outputText value="Order #{order.number}"/>
        </p:timeline>
    </div>
    <!-- Dialog with overlapped timeline events -->
    <p:dialog id="overlapEventsDlg" header="Overlapped Orders" widgetVar="overlapEventsWdgt"
              showEffect="clip" hideEffect="clip">
        <h:panelGroup id="overlappedOrdersInner" layout="block" style="padding:10px;">
            <strong>
                Please choose Orders you want to merge with the Order #{groupingTimelineView.selectedOrder}
            </strong>

            <p/>

            <p:selectManyMenu id="overlappedOrders" value="#{groupingTimelineView.ordersToMerge}"
                              showCheckbox="true">
                <f:selectItems value="#{groupingTimelineView.overlappedOrders}" var="order"
                               itemLabel=" Order #{order.data.number}" itemValue="#{order}"/>
                <sc:convertOrder events="#{groupingTimelineView.model.events}"/>
            </p:selectManyMenu>
        </h:panelGroup>

        <f:facet name="footer">
            <h:panelGroup layout="block" style="text-align:right; padding:2px; white-space:nowrap;">
                <p:commandButton value="Merge" process="overlapEventsDlg" update="@none"
                                 action="#{groupingTimelineView.merge}"
                                 oncomplete="PF('overlapEventsWdgt').hide()"/>
                <p:commandButton type="button" value="Close" onclick="PF('overlapEventsWdgt').hide()"/>
            </h:panelGroup>
        </f:facet>
    </p:dialog>
</h:form>