]> git.proxmox.com Git - sencha-touch.git/blob - src/examples/geocongress/app/store/Districts.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / examples / geocongress / app / store / Districts.js
1 Ext.define('GeoCon.store.Districts', {
2 extend : 'Ext.data.Store',
3
4 config: {
5 fields: [ 'state', 'district' ],
6
7 proxy: {
8 type: 'jsonp',
9 url: 'http://congress.api.sunlightfoundation.com/districts/locate',
10 preventNamespacing: true,
11 extraParams: {
12 apikey: '8a341f85c657435989e75c9a83294762',
13 per_page: 'all'
14 },
15 reader: {
16 rootProperty: 'results'
17 }
18 }
19 }
20 });