diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index a15897d212..5371093a57 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -607,14 +607,14 @@ Float (`float`) .. code-block:: xml - + - `step`: set the step to the value up and down when the user click on buttons (only for input of type number, `1` by default) .. code-block:: xml - + - `format`: should the number be formatted. (`true` by default) @@ -623,14 +623,24 @@ Float (`float`) .. code-block:: xml - + + + - `min_display_digits`: The minimum number of decimal digits to display. + + For example, if set to 3 and no decimal precision is provided: + `1.2` becomes `"1.200"`, `1.123` becomes `"1.123"` and `1.1234` becomes `"1.1234"`. + + .. code-block:: xml + + + - `hide_trailing_zeros`: hide zeros to the right of the last non-zero digit, e.g. `1.20` becomes `1.2` (`false` by default). .. code-block:: xml - + Time (`float_time`) The goal of this widget is to display properly a float value that represents