日期:2014-05-16 浏览次数:20450 次
EXTJS 简易下拉框 easyCombo
一个自己拓展的简单下拉框
?
/**
?*简易下拉框
*/
Ext.ux.EasyCombo = Ext.extend(Ext.form.ComboBox, {
??? initComponent: function() {
??????? this.readOnly = true;
??????? this.displayField = 'mc';
??????? this.valueField = 'id';
??????? this.triggerAction = 'all';
??????? this.mode=this.mode;
??????? this.store=this.store;
???? this.forceSelection= true;
??????? this.editable=false;
??????? this.emptyText='请选择...';
??????? Ext.ux.EasyCombo.superclass.initComponent.call(this);
??? }
});
Ext.reg('easyCombo', Ext.ux.EasyCombo);
前台调用:
?
,{
?????????????????????xtype:'easyCombo',
???????????????????? fieldLabel: '<span style="color:red;">* </span>收费方式',
???????????????????? hiddenName:'payModeNo',
???????????????????? allowBlank:false,
???????????????????? store : payModeNoStore,
???????????????????? value: 11,
???????????????????? mode: 'local'
}