日期:2014-05-16  浏览次数:20350 次

ExtJS4去除下拉框的光标(remove the cursor of combo)

{

id : 'brandId',

name : 'brandId',

xtype : 'combo',

fieldLabel : '手机品牌',

labelWidth : 60,

store : brandStore,

queryMode : 'local',

displayField : 'name',

valueField : 'id',

editable : false,

emptyText : '请选择手机品牌',

layout : 'column',

listeners : {

//令下拉框在不可编辑状态下的光标消失

render: function(obj) {

this.inputEl.addListener('focus', function(event, htmlElement, options) {

htmlElement.blur();

});

}

}

}