Extjs自动填充

时间:2015-11-14 04:25:39
【文件属性】:
文件名称:Extjs自动填充
文件大小:1.62MB
文件格式:RAR
更新时间:2015-11-14 04:25:39
extjs 自动填充 autoComplete Ext.onReady(function() { new Ext.form.FormPanel({ height : 90, width:500, labelWidth : 200, labelPad : 0, renderTo :'auto', frame : true, items : [ { xtype : 'combo', triggerAction : 'query', forceSelection : true, editable : true, queryParam : 'autoContent',//向后台传递输入框中的值 minChars : 2, fieldLabel : '填写自动提示内容', emptyText : '--请填写--', selectOnFocus : true, id : 'autos', name : 'autos', valueField : 'name', displayField : 'value', anchor : '95%', hideTrigger : true, //隐藏下拉箭头 typeAhead : false, queryDelay : 700, mode : 'remote', store : new Ext.data.JsonStore({ url : contextPath + '/AutoComplete', root : 'root', baseParams : { limit : 20 }, fields : [ { name : 'value', mapping : 'value' },{ name:'name', mapping:'name' } ] }), listeners : { //为了解决 编辑后无法保存 render : function(f) { f.el.on('keyup', function(e) { f.setValue(f.getRawValue()); }); } } }] }); });

网友评论

  • 非常不错的资料
  • 很好 很强大 非常感谢
  • 很好的资源,把工程加载到服务器中就能运行。谢谢