summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reference/javascript_reference.rst')
-rw-r--r--doc/reference/javascript_reference.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst
index f2b9685006f..9069916a250 100644
--- a/doc/reference/javascript_reference.rst
+++ b/doc/reference/javascript_reference.rst
@@ -1570,6 +1570,15 @@ order.
<field name="int_value" options='{"type": "number", "step": 100}'/>
+ - format: should the number be formatted. (true by default)
+
+ By default, numbers are formatted according to locale parameters.
+ This option will prevent the field's value from being formatted.
+
+ .. code-block:: xml
+
+ <field name="int_value" options='{"format": false}'/>
+
- float (FieldFloat)
This is the default field type for fields of type *float*.
@@ -1602,6 +1611,15 @@ order.
<field name="int_value" options='{"type": "number", "step": 0.1}'/>
+ - format: should the number be formatted. (true by default)
+
+ By default, numbers are formatted according to locale parameters.
+ This option will prevent the field's value from being formatted.
+
+ .. code-block:: xml
+
+ <field name="int_value" options='{"format": false}'/>
+
- float_time (FieldFloatTime)
The goal of this widget is to display properly a float value that represents
a time interval (in hours). So, for example, 0.5 should be formatted as 0:30,