您好,可以在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 ]
- });
复制代码 |