File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ PercentType Field
5
5
=================
6
6
7
7
The ``PercentType `` renders an input text field and specializes in handling
8
- percentage data. If your percentage data is stored as a decimal (e.g. ``.95 ``),
8
+ 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
60
60
**type **: ``string `` **default **: ``fractional ``
61
61
62
62
This controls how your data is stored on your object. For example, a percentage
63
- corresponding to "55%", might be stored as ``.55 `` or ``55 `` on your
63
+ corresponding to "55%", might be stored as ``0 .55 `` or ``55 `` on your
64
64
object. The two "types" handle these two cases:
65
65
66
66
* ``fractional ``
67
- If your data is stored as a decimal (e.g. ``.55 ``), use this type.
67
+ If your data is stored as a decimal (e.g. ``0 .55 ``), use this type.
68
68
The data will be multiplied by ``100 `` before being shown to the
69
69
user (e.g. ``55 ``). The submitted data will be divided by ``100 ``
70
- on form submit so that the decimal value is stored (``.55 ``);
70
+ on form submit so that the decimal value is stored (``0 .55 ``);
71
71
72
72
* ``integer ``
73
73
If your data is stored as an integer (e.g. 55), then use this option.
You can’t perform that action at this time.
0 commit comments