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.
13
13
+-------------+----------------------------------------------------------------------+
14
14
| Options | - `grouping `_ |
15
15
| | - `html5 `_ |
16
+ | | - `input `_ |
16
17
| | - `scale `_ |
17
18
| | - `rounding_mode `_ |
18
19
+-------------+----------------------------------------------------------------------+
59
60
If set to ``true ``, the HTML input will be rendered as a native HTML5 ``type="number" ``
60
61
form.
61
62
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
+
62
78
scale
63
79
~~~~~
64
80
You can’t perform that action at this time.
0 commit comments