-
Notifications
You must be signed in to change notification settings - Fork 3
/
carStore.js
41 lines (40 loc) · 955 Bytes
/
carStore.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* File: carStore.js
* Date: Mon Apr 12 2010 22:46:29 GMT-0700 (PDT)
*
* This file was generated by Ext Designer version xds-1.0.0.7c.
* http://www.sencha.com/products/designer/
*
* This file will be auto-generated each and everytime you export.
*
* Do NOT hand edit this file.
*/
carStore = Ext.extend(Ext.data.JsonStore, {
constructor: function(cfg) {
cfg = cfg || {};
carStore.superclass.constructor.call(this, Ext.apply({
storeId: 'MyStore',
url: 'cars/cars.json',
root: 'data',
autoLoad: true,
fields : [
{
name: 'manufacturer'
},
{
name: 'model'
},
{
name: 'price'
},
{
name: 'wiki'
},
{
name: 'img'
}
]
}, cfg));
}
});
new carStore();