Extjs:整数验证
Extjs : Validation for Integers
我想添加一个只能取整数不能取小数的字段。
我尝试使用数字字段作为
{
xtype : 'numberfield',
fieldLabel : 'number',
}
我不想让它不可编辑
有什么办法吗
请尝试在数字字段上设置 allowDecimals 配置,使其看起来像:
{
xtype : 'numberfield',
fieldLabel : 'number',
allowDecimals: false
}
我想添加一个只能取整数不能取小数的字段。
我尝试使用数字字段作为
{
xtype : 'numberfield',
fieldLabel : 'number',
}
我不想让它不可编辑
有什么办法吗
请尝试在数字字段上设置 allowDecimals 配置,使其看起来像:
{
xtype : 'numberfield',
fieldLabel : 'number',
allowDecimals: false
}