【发布时间】:2019-08-06 14:29:53
【问题描述】:
这样的数字字段
xtype : 'numberfield',
fieldLabel : 'this is a label',
id : 'id',
name : 'id',
width : 50,
labelStyle : 'width:300px',
minValue : 1,
hideTrigger : true,
allowNegative : false,
maxValue : 7,
decimalPrecision : 1,
allowPureDecimal : true,
editable : true,
allowBlank : false
接受数字 1、1.1、3.5 ... 7
但我也需要接受 0。 extjs 中是否存在异常之类的属性或允许输入 0 以及已建立的最小值和最大值的东西?
如果有人可以指导我,我将不胜感激
感谢您的宝贵时间!
【问题讨论】:
-
minValue: 0 不起作用吗?
-
是的,但我不需要值 0.1 - 0.2 - 0.9 和 minvalue 0 接受该数字