首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

带复选框且支持搜索功能的上拉列表5

2012-10-06 
带复选框且支持搜索功能的下拉列表5// privatefireKey : function(e){if (e.isNavKeyPress() && !this.lis

带复选框且支持搜索功能的下拉列表5

// 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;    },

热点排行