📄 directcombo.js
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -