File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ that you want to use for your number.
1313+-------------+----------------------------------------------------------------------+
1414| Options | - `grouping `_ |
1515| | - `html5 `_ |
16+ | | - `input `_ |
1617| | - `scale `_ |
1718| | - `rounding_mode `_ |
1819+-------------+----------------------------------------------------------------------+
5960If set to ``true ``, the HTML input will be rendered as a native HTML5 ``type="number" ``
6061form.
6162
63+ input
64+ ~~~~~
65+
66+ **type **: ``string `` **default **: ``number ``
67+
68+ .. versionadded :: 4.3
69+
70+ The ``input `` option was introduced in Symfony 4.3.
71+
72+ The format of the input data - i.e. the format that the number is stored on
73+ your underlying object. Valid values are ``number `` and ``string ``. Setting
74+ this option to ``string `` can be useful if the underlying data is a string
75+ for precision reasons (for example, Doctrine uses strings for the ``decimal ``
76+ type).
77+
6278scale
6379~~~~~
6480
You can’t perform that action at this time.
0 commit comments