ext文本框双击编辑功能
{ header: '双击编辑', align: 'center', dataIndex: 'iqty', width:200, flex:1, renderer: function(value){ if(value==='' || value===null) return '点击输入盘点数量'; return Ext.util.Format.number(value,'0.00'); }, editor:{ xtype: 'numberfield', allowBlank: false, valid:true, minValue:0, decimalPrecision: 4, nanText:'文本', validator: function(value){ var me = this; if(value){ if(!me.valid){ return me.invalidText; }else { return true; } } else { return '提示'; } }, listeners: { pecialkey: function(th, e, eOpts){ if (e.getKey() == e.ENTER) { e.keyCode = Ext.EventObject.TAB; } } } } }
正在加载评论...