gpt4 book ai didi

javascript - Extjs添加到组合框不可选择的="on"属性

转载 作者:行者123 更新时间:2023-11-28 09:35:50 25 4
gpt4 key购买 nike

我想在组合框属性中设置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);
}

});

谢谢。

最佳答案

既然你使用的是 ExtJS,为什么不直接使用:

Ext.get('someElemName').unselectable();

关于javascript - Extjs添加到组合框不可选择的="on"属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13066223/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com