我想在组合框属性中设置unselectable="on".
如何在 javascript 或 jquery 中进行设置?
Ext.ux.form.HtmlEditor.HR = Ext.extend(Ext.util.Observable, {
init:function (cmp) {
this.cmp = cmp;
// create the combo instance
this.combo = new Ext.form.ComboBox({
typeAhead:true,
enableKeyEvents:false,
triggerAction:'all',
lazyRender:true,
mode:'local',
store:[8, 10, 12, 14, 16, 18, 20, 24, 26, 28, 32, 36, 40, 48, 54, 60, 72],
width:50,
listeners:{
scope:cmp,
select:changeFont
}
});
this.cmp.on('render', this.onRender, this);
},
onRender:function () {
this.cmp.getToolbar().add(this.combo);
}
});
谢谢。