---
title: "EXTJS3 简易下拉框 easyCombo"
author: "atgoingguoat"
date: "2010-09-01T10:34:33Z"
tags: []
categories: ["Web前端"]
slug: "extjs3-easycombo"
draft: false
lastmod: "2010-09-01T10:35:26Z"
id: 752427
url: "https://atgoingguoat.iteye.com/blog/752427"
---

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: '&lt;span style="color:red;"&gt;* &lt;/span&gt;收费方式',  
                     hiddenName:'payModeNo',  
                     allowBlank:false,  
                     store : payModeNoStore,  
                     value: 11,  
                     mode: 'local'  
}