Extjs常用的控件
2010-01-25 09:17
211 查看
var reportCategory = new Ext.form.ComboBox({
fieldLabel: '报表类型',
hiddenName:'reportCategory1',
store: new Ext.data.SimpleStore({
fields: ['num', 'name'],
data : [[1,'年报表'],[2,'月报表'],[3,'日报表']]
}),
valueField:'num',
displayField:'name',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'请选择...',
selectOnFocus:true,
width:120
});
var dtYear = new Ext.form.NumberField({
fieldLabel:'年',
name:'dtYear1',
allowBlank:false,
allowDecimals:false,
allowNegative:false,
value:2008,
minValue:2000,
maxValue:2100,
selectOnFocus:true,
validationEvent:false,
width:120
});
var dtDay = new Ext.form.DateField({
fieldLabel: '日期',
name: 'dtDay1',
width:120,
validationEvent:false,
allowBlank:false
});
var fs = new Ext.form.FormPanel({
frame: true,
labelAlign: 'right',
labelWidth: 60,
autoHeight:true,
autoWidth:true,
onSubmit: Ext.emptyFn,
submit: function(){
this.getEl().dom.method='POST';
this.getEl().dom.action='search.jsp';
this.getEl().dom.submit();
},
waitMsgTarget: true,
items: reportCategory
});
比如fs需要提交的话 可以这样
fs.getForm().submit();
fieldLabel: '报表类型',
hiddenName:'reportCategory1',
store: new Ext.data.SimpleStore({
fields: ['num', 'name'],
data : [[1,'年报表'],[2,'月报表'],[3,'日报表']]
}),
valueField:'num',
displayField:'name',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'请选择...',
selectOnFocus:true,
width:120
});
var dtYear = new Ext.form.NumberField({
fieldLabel:'年',
name:'dtYear1',
allowBlank:false,
allowDecimals:false,
allowNegative:false,
value:2008,
minValue:2000,
maxValue:2100,
selectOnFocus:true,
validationEvent:false,
width:120
});
var dtDay = new Ext.form.DateField({
fieldLabel: '日期',
name: 'dtDay1',
width:120,
validationEvent:false,
allowBlank:false
});
var fs = new Ext.form.FormPanel({
frame: true,
labelAlign: 'right',
labelWidth: 60,
autoHeight:true,
autoWidth:true,
onSubmit: Ext.emptyFn,
submit: function(){
this.getEl().dom.method='POST';
this.getEl().dom.action='search.jsp';
this.getEl().dom.submit();
},
waitMsgTarget: true,
items: reportCategory
});
比如fs需要提交的话 可以这样
fs.getForm().submit();
相关文章推荐
- EXTJS 常用控件的使用
- 『ExtJS』表单(一)常用表单控件及内置验证
- ExtJs 一些常用的控件
- ExtJs常用控件属性
- 『ExtJS』表单(一)常用表单控件及内置验证
- EXTJS 常用控件的使用
- EXTJS 常用控件的使用
- extjs 常用控件的使用 table layout
- EXTJS 常用控件的使用
- ExtJs 一些常用的控件
- extjs 常用控件的使用 table layout
- ExtJs常用控件属性
- ExtJS基础知识总结:常用控件使用方式(一)
- Extjs4 常用控件与面板、布局
- Extjs 几个常用控件
- 『ExtJS』表单(一)常用表单控件及内置验证
- EXTJS 常用控件的使用
- ExtJs的一些常用控件属性
- Extjs之常用控件要封装
- 『ExtJS』表单(一)常用表单控件及内置验证