]>
git.proxmox.com Git - extjs.git/blob - extjs/examples/kitchensink/classic/samples/view/form/combobox/RemoteLoad.js
2 * This example illustrates a combo box which loads the data source from a server
3 * but queries the local result set. It uses a custom item template for the dropdown list.
5 Ext
.define('KitchenSink.view.form.combobox.RemoteLoad', {
6 extend
: 'Ext.form.Panel',
7 xtype
: 'remote-loaded-combo',
11 'KitchenSink.model.State',
12 'KitchenSink.store.RemoteStates'
15 exampleTitle
: 'Remote loaded ComboBox',
18 path
: 'classic/samples/model/State.js'
21 path
: 'classic/samples/store/RemoteStates.js'
25 title
: 'Remote loaded ComboBox',
37 '<h3>Remote loaded, local query mode</h3>',
38 '<p>This ComboBox uses remotely loaded data, to perform querying ',
40 '<p>This is suitable when the dataset is not too big or dynamic ',
41 'to be manipulated locally.</p>',
42 '<p>This example uses a custom template for the dropdown list ',
43 'to illustrate grouping.</p>'
46 xtype
: 'displayfield',
47 fieldLabel
: 'Selected State',
48 bind
: '{states.value}'
53 fieldLabel
: 'Select State',
54 displayField
: 'state',
57 type
: 'remote-states',
63 '<ul class="x-list-plain">',
66 Ext
.baseCSSPrefix
, 'grid-group-hd ',
67 Ext
.baseCSSPrefix
, 'grid-group-title">{abbr}</li>',
68 '<li class="x-boundlist-item">',
69 '{state}, {description}',