Skip to content
Merged
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
13 changes: 13 additions & 0 deletions reference/forms/types/number.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ that you want to use for your number.
| Rendered as | ``input`` ``text`` field |
+-------------+----------------------------------------------------------------------+
| Options | - `grouping`_ |
| | - `html5`_ |
| | - `scale`_ |
| | - `rounding_mode`_ |
+-------------+----------------------------------------------------------------------+
Expand Down Expand Up @@ -46,6 +47,18 @@ Field Options

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

html5
~~~~~

**type**: ``boolean`` **default**: ``false``

.. versionadded:: 4.3

The ``html5`` option was introduced in Symfony 4.3.

If set to ``true``, the HTML input will be rendered as a native HTML5 ``type="number"``
form.

scale
~~~~~

Expand Down