Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
DirectCombo.js
Package: ext-3.1.0.zip [view]
Upload User: dawnssy
Upload Date: 2022-08-06
Package Size: 9345k
Code Size: 2k
Category:
JavaScript
Development Platform:
JavaScript
- /*!
- * Ext JS Library 3.1.0
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.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() {
- Ext.apply(this.storeConfig, {
- directFn: Imgorg.ss.Tags.load
- });
- 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({
- directFn: Imgorg.ss.Tags.load,
- 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() {
- Ext.apply(this.storeConfig, {
- directFn: Imgorg.ss.Albums.getAllInfo
- });
- Imgorg.AlbumCombo.superclass.initComponent.call(this);
- }
- });
- Ext.reg('img-albumcombo', Imgorg.AlbumCombo);