File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ percentage data. If your percentage data is stored as a decimal (e.g. ``0.95``),
99you can use this field out-of-the-box. If you store your data as a number
1010(e.g. ``95 ``), you should set the ``type `` option to ``integer ``.
1111
12- This field adds a percentage sign "``% ``" after the input box.
12+ When ``symbol `` is true, the field will add a percentage sign "``% ``" after the
13+ input.
1314
1415+-------------+-----------------------------------------------------------------------+
1516| Rendered as | ``input `` ``text `` field |
1617+-------------+-----------------------------------------------------------------------+
1718| Options | - `scale `_ |
19+ | | - `symbol `_ |
1820| | - `type `_ |
1921+-------------+-----------------------------------------------------------------------+
2022| Overridden | - `compound `_ |
5456By default, the input numbers are rounded. To allow for more decimal places,
5557use this option.
5658
59+ symbol
60+ ~~~~~~
61+
62+ **type **: ``boolean `` **default **: ``true ``
63+
64+ .. versionadded :: 4.3
65+
66+ The ``symbol `` option was introduced in Symfony 4.3.
67+
68+ By default, fields are rendered with a percentage sign "`% `" after the input.
69+ Setting the value to ``false `` will not display the percentage sign.
70+ Setting the value to a `string ` (.i.e. "`‱ `") it will be shown instead of
71+ the default "`% `" sign.
72+
5773type
5874~~~~
5975
You can’t perform that action at this time.
0 commit comments