Skip to content

Commit f11ac7a

Browse files
committed
Merge pull request symfony#3152 from xabbuh/issue-2362
document the DateTimeType widget option
2 parents 56f3ffb + 4de7b73 commit f11ac7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

reference/forms/types/datetime.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ data can be a ``DateTime`` object, a string, a timestamp or an array.
1717
+----------------------+-----------------------------------------------------------------------------+
1818
| Options | - `date_widget`_ |
1919
| | - `time_widget`_ |
20+
| | - `widget`_ |
2021
| | - `input`_ |
2122
| | - `date_format`_ |
2223
| | - `hours`_ |
@@ -59,6 +60,15 @@ time_widget
5960

6061
Defines the ``widget`` option for the :doc:`time </reference/forms/types/time>` type
6162

63+
widget
64+
~~~~~~
65+
66+
**type**: ``string`` **default**: ``null``
67+
68+
Defines the ``widget`` option for both the :doc:`date </reference/forms/types/date>`
69+
type and :doc:`time </reference/forms/types/time>` type. Can be overridden with
70+
the `date_widget`_ and `time_widget`_ options.
71+
6272
input
6373
~~~~~
6474

0 commit comments

Comments
 (0)