directcombo.js

来自「Ext JS是一个创建丰富互联网应用程序的跨浏览器的JavaScrip库。它包含」· JavaScript 代码 · 共 68 行

JS
68
字号
/*
 * Ext JS Library 3.0 Pre-alpha
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Imgorg.DirectCombo = Ext.extend(Ext.form.ComboBox, {    displayField: 'text',    valueField: 'id',    triggerAction: 'all',    queryAction: 'name',    forceSelection: true,    mode: 'remote',        initComponent: function() {        this.store = new Ext.data.DirectStore(Ext.apply({            api: this.api,            root: '',            fields: this.fields || ['text', 'id']        }, this.storeConfig));                Imgorg.DirectCombo.superclass.initComponent.call(this);    }});Imgorg.TagCombo = Ext.extend(Imgorg.DirectCombo,{    forceSelection: false,    storeConfig: {        id: 'tag-store'    },    initComponent: function() {        this.api = Imgorg.ss.Tags;        Imgorg.TagCombo.superclass.initComponent.call(this);    }});Ext.reg('img-tagcombo', Imgorg.TagCombo);Imgorg.TagMultiCombo = Ext.extend(Ext.ux.MultiCombo,{    listClass: 'label-combo',    displayField: 'text',    valueField: 'id',        initComponent: function() {        this.store = new Ext.data.DirectStore(Ext.apply({            api: Imgorg.ss.Tags,            root: '',            autoLoad: true,            fields: this.fields || ['text', 'id']        }, this.storeConfig));        this.plugins =new Ext.ux.MultiCombo.Checkable({});        Imgorg.DirectCombo.superclass.initComponent.call(this);    }});Ext.reg('img-tagmulticombo', Imgorg.TagMultiCombo);Imgorg.AlbumCombo = Ext.extend(Imgorg.DirectCombo, {    storeConfig: {        id: 'album-store'    },    initComponent: function() {        this.api = Imgorg.ss.Albums;        Imgorg.AlbumCombo.superclass.initComponent.call(this);    }});Ext.reg('img-albumcombo', Imgorg.AlbumCombo);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?