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

Appearance settings

Commit bc5ac28

Browse filesBrowse files
committed
document the NumberType html5 option
1 parent c03e4c0 commit bc5ac28
Copy full SHA for bc5ac28

File tree

1 file changed

+13
-0
lines changed
Filter options

1 file changed

+13
-0
lines changed

‎reference/forms/types/number.rst

Copy file name to clipboardExpand all lines: reference/forms/types/number.rst
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ that you want to use for your number.
1212
| Rendered as | ``input`` ``text`` field |
1313
+-------------+----------------------------------------------------------------------+
1414
| Options | - `grouping`_ |
15+
| | - `html5`_ |
1516
| | - `scale`_ |
1617
| | - `rounding_mode`_ |
1718
+-------------+----------------------------------------------------------------------+
@@ -46,6 +47,18 @@ Field Options
4647

4748
.. include:: /reference/forms/types/options/grouping.rst.inc
4849

50+
html5
51+
~~~~~
52+
53+
**type**: ``boolean`` **default**: ``false``
54+
55+
.. versionadded:: 4.3
56+
57+
The ``html5`` option was introduced in Symfony 4.3.
58+
59+
If set to ``true``, the HTML input will be rendered as a native HTML5 ``type="number"``
60+
form.
61+
4962
scale
5063
~~~~~
5164

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.