Skip to content

Documented the new date_label and time_label options #10389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Alloe null values too
  • Loading branch information
javiereguiluz committed Sep 24, 2018
commit d098cd82c4dbc038e4bc1fb29127a9aa8f3f73c7
4 changes: 2 additions & 2 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ date_widget
date_label
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like we need to move this up :)

~~~~~~~~~~

**type**: ``string`` **default**: The label is "guessed" from the field name
**type**: ``string`` | ``null`` **default**: The label is "guessed" from the field name

.. versionadded:: 4.2
The ``date_label`` option was introduced in Symfony 4.2.
Expand Down Expand Up @@ -173,7 +173,7 @@ Defines the ``widget`` option for the :doc:`TimeType </reference/forms/types/tim
time_label
~~~~~~~~~~

**type**: ``string`` **default**: The label is "guessed" from the field name
**type**: ``string`` | ``null`` **default**: The label is "guessed" from the field name

.. versionadded:: 4.2
The ``time_label`` option was introduced in Symfony 4.2.
Expand Down