wijmo中的wj-combo-box怎么不让它能输入?
简单来说,禁止在控件里输入如何文本!但是焦点还是可以进去,只能通过选择item来显示值!您好,可以在combobox中设置isEditable为false即可,如下列代码所示:
var theComboNumber = new wijmo.input.ComboBox('#theComboNumber', {
selectedIndexChanged: function(s, e) {
setText('theComboNumberValue', s.selectedValue);
},
isEditable:false,
itemsSource: [ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71 ]
});
页:
[1]