Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions content/developer/reference/frontend/javascript_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,14 @@ Date & Time (`datetime`)

<field name="datetimefield" options="{'rounding': 10}" />

- `show_time`: when set to false, it hides the time part from the datetime field.
The field will still accept datetime values, but the time part will be hidden in
the UI (default: `true`).

.. code-block:: xml

<field name="datetimefield" widget="datetime" options="{'show_time': false}" />

Date Range (`daterange`)
This widget allows the user to select start and end date from a single picker.

Expand Down