diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index 2b2b2d01f..03af206bc 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -625,6 +625,13 @@ Float (`float`) + - `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 a time interval (in hours). So, for example, `0.5` should be formatted as `0:30`, @@ -787,6 +794,13 @@ Monetary (`monetary`) + - `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 + + + Text (`text`) This is the default field type for fields of type `text`.