// private fireKey : function(e) { if (e.isNavKeyPress() && !this.list.isVisible()) { this.fireEvent("specialkey", this, e); } }, // private onResize: function(w, h) { Ext.form.ComboBox.superclass.onResize.apply(this, arguments); if (this.list && this.listWidth === undefined) { var lw = Math.max(w, this.minListWidth); this.list.setWidth(lw); this.innerList.setWidth(lw - this.list.getFrameWidth('lr')); } }, // private onDisable: function() { Ext.form.ComboBox.superclass.onDisable.apply(this, arguments); if (this.hiddenField) { this.hiddenField.disabled = this.disabled; } }, setEditable : function(value) { if (value == this.editable) { return; } this.editable = value; if (!value) { this.el.dom.setAttribute('readOnly', true); this.el.on('mousedown', this.onTriggerClick, this); this.el.addClass('x-combo-noedit'); } else { this.el.dom.setAttribute('readOnly', false); this.el.un('mousedown', this.onTriggerClick, this); this.el.removeClass('x-combo-noedit'); } }, // private onBeforeLoad : function() { if (!this.hasFocus) { return; } this.innerList.update(this.loadingText ? '<div class="loading-indicator">' + this.loadingText + '</div>' : ''); this.restrictHeight(); this.selectedIndex = -1; },
详细解决方案
带复选框且支持搜索功能的上拉列表5
热度:72 发布时间:2012-10-06 17:34:01.0
相关解决方案