File tree 1 file changed +17
-1
lines changed
Filter options
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``),
9
9
you can use this field out-of-the-box. If you store your data as a number
10
10
(e.g. ``95 ``), you should set the ``type `` option to ``integer ``.
11
11
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.
13
14
14
15
+-------------+-----------------------------------------------------------------------+
15
16
| Rendered as | ``input `` ``text `` field |
16
17
+-------------+-----------------------------------------------------------------------+
17
18
| Options | - `scale `_ |
19
+ | | - `symbol `_ |
18
20
| | - `type `_ |
19
21
+-------------+-----------------------------------------------------------------------+
20
22
| Overridden | - `compound `_ |
54
56
By default, the input numbers are rounded. To allow for more decimal places,
55
57
use this option.
56
58
59
+ symbol
60
+ ~~~~~~
61
+
62
+ **type **: ``boolean `` or ``string `` **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. ``‱ ``), will show the string value instead
71
+ of the default ``% `` sign.
72
+
57
73
type
58
74
~~~~
59
75
You can’t perform that action at this time.
0 commit comments