欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

EXTJS3 简易下拉框 easyCombo 博客分类: js  

程序员文章站 2024-02-18 13:01:28
...

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'
}