This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push: new 3282bdbfd Improved: Add daterangepicker examples (OFBIZ-13209) 3282bdbfd is described below commit 3282bdbfd2ca6e2918119557f67cdd5646768dbd Author: Florian Motteau <fmott...@gmail.com> AuthorDate: Mon Mar 3 09:48:27 2025 +0100 Improved: Add daterangepicker examples (OFBIZ-13209) Related to apache/ofbiz-framework#879 Thanks: Nereide Team --- example/widget/example/ExampleForms.xml | 6 ++++++ example/widget/example/FormWidgetExampleForms.xml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/example/widget/example/ExampleForms.xml b/example/widget/example/ExampleForms.xml index 22121cab1..b36de8faa 100644 --- a/example/widget/example/ExampleForms.xml +++ b/example/widget/example/ExampleForms.xml @@ -44,6 +44,9 @@ under the License. <option key="status"/> </radio> </field> + <field name="anotherDate"> + <date-range-picker single-date-picker="false" time-picker="true" drops="up"/> + </field> <field name="searchButton"><submit/></field> <field name="exportButton" position="2" widget-style="smallSubmit" title=" "> <hyperlink also-hidden="false" target-type="plain" description="${uiLabelMap.CommonExport}" @@ -220,6 +223,9 @@ under the License. <field name="displayAnotherText" use-when="anotherText!=null"> <display description="${example.anotherText}"/> </field> + <field name="anotherDate"> + <date-range-picker time-picker="true" drops="up"/> + </field> <field name="submitButton" use-when="example==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> <field name="submitButton" use-when="example!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field> </form> diff --git a/example/widget/example/FormWidgetExampleForms.xml b/example/widget/example/FormWidgetExampleForms.xml index 1134bc003..8d4c60c58 100644 --- a/example/widget/example/FormWidgetExampleForms.xml +++ b/example/widget/example/FormWidgetExampleForms.xml @@ -134,6 +134,28 @@ under the License. title="${uiLabelMap.ExampleDateField15Title}"> <date-find type="time"/> </field> + + <!-- ********************************** --> + <!-- *** Date Range Picker examples *** --> + <!-- ********************************** --> + <field name="oneDate"> + <date-range-picker single-date-picker="true" time-picker-increment="3" min-year="2010" max-year="2030" max-span="9"/> + </field> + <field name="oneDateTime"> + <date-range-picker single-date-picker="true" time-picker="true" time-picker-increment="3" linked-calendars="false" min-year="2010" max-year="2030" drops="up"/> + </field> + <field name="oneDateTimeSeconds"> + <date-range-picker single-date-picker="true" time-picker="true" time-picker-seconds="true" linked-calendars="false" min-year="2010" max-year="2030" drops="up"/> + </field> + <field name="dateRange"> + <date-range-picker single-date-picker="false" linked-calendars="false" min-year="2010" max-year="2030" show-week-numbers="true" drops="up"/> + </field> + <field name="dateTimeRange"> + <date-range-picker single-date-picker="false" time-picker="true" max-span="6" clear-title="EMPTY THE INPUT PLEASE" drops="up"/> + </field> + <field name="dateTimeRangeSeconds"> + <date-range-picker single-date-picker="false" time-picker="true" time-picker-seconds="true" time-picker-increment="30" linked-calendars="false" drops="up"/> + </field> </form> <form name="DropDownFieldsExampleForm" type="single" title="">