Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

clarify datetime type option deprecations#11235

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:masterfromxabbuh:pr-10982
Mar 28, 2019
Merged
Changes fromall 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
23 changes: 13 additions & 10 deletionsreference/forms/types/datetime.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,8 +74,10 @@ Defines the ``format`` option that will be passed down to the date field.
See the :ref:`DateType's format option <reference-forms-type-date-format>`
for more details.

The ``date_format`` option does not have any effect when the form is rendered
as an HTML5 datetime input.
.. deprecated:: 4.3

Using the ``date_format`` option when the form is rendered as an HTML 5
datetime input is deprecated since Symfony 4.3.

date_label
~~~~~~~~~~
Expand All@@ -96,7 +98,10 @@ date_widget

.. include:: /reference/forms/types/options/date_widget_description.rst.inc

The ``date_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
.. deprecated:: 4.3

Using the ``date_widget`` option when the ``widget`` option is set to
``single_text`` is deprecated since Symfony 4.3.

.. include:: /reference/forms/types/options/days.rst.inc

Expand DownExpand Up@@ -139,7 +144,7 @@ used by the HTML5 ``datetime-local`` field. Keeping the default value will
cause the field to be rendered as an ``input`` field with ``type="datetime-local"``.
For more information on valid formats, see `Date/Time Format Syntax`_.

..versionadded:: 4.3
..deprecated:: 4.3

Using the ``format`` option when the ``html5`` option is enabled is deprecated
since Symfony 4.3.
Expand DownExpand Up@@ -203,7 +208,10 @@ time_widget

Defines the ``widget`` option for the :doc:`TimeType </reference/forms/types/time>`.

The ``time_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
.. deprecated:: 4.3

Using the ``time_widget`` option when the ``widget`` option is set to
``single_text`` is deprecated since Symfony 4.3.

.. include:: /reference/forms/types/options/view_timezone.rst.inc

Expand All@@ -216,11 +224,6 @@ Defines the ``widget`` option for both the :doc:`DateType </reference/forms/type
and :doc:`TimeType </reference/forms/types/time>`. This can be overridden
with the `date_widget`_ and `time_widget`_ options.

.. versionadded:: 4.3

Using the ``date_format``, ``date_widget``, and ``time_widget`` options when
the ``widget`` option is set to ``single_text`` is deprecated since Symfony 4.3.

.. include:: /reference/forms/types/options/with_minutes.rst.inc

.. include:: /reference/forms/types/options/with_seconds.rst.inc
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp