How do I force the display of a decimal in an ExtJS NumberField to a certain precision?

后端 未结 7 2386
梦谈多话
梦谈多话 2020-12-14 10:39

I have a form with a NumberField that gets values of type float from JSON. If the values happen to be whole numbers, then no decimal places are sho

7条回答
  •  一整个雨季
    2020-12-14 11:03

    The option decimalPrecision definition is: "The maximum precision to display after the decimal separator (defaults to 2)"

    There is no option to force the format, you problably have to override NumberField class.

提交回复
热议问题