Sha256: 5e6802a634e7ad028ee9369b27b487e596ce113ac54ca5cefc9d90e14cd6b3a4

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

/*
 * File: app/store/NamesStore.js
 * Date: Wed Sep 07 2011 15:18:03 GMT+0200 (CEST)
 *
 * This file was generated by Ext Designer version 1.2.0.
 * http://www.sencha.com/products/designer/
 *
 * This file will be auto-generated each and everytime you export.
 *
 * Do NOT hand edit this file.
 */

Ext.define('NamesApp.store.NamesStore', {
    extend: 'Ext.data.Store',

    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            autoLoad: true,
            storeId: 'NamesStore',
            proxy: {
                type: 'direct',
                api: {
                    read: Names.load,
                    update: Names.update,
                    create: Names.create
                },
                reader: {
                    type: 'json',
                    idProperty: 'id',
                    messageProperty: 'message',
                    root: 'data'
                }
            },
            fields: [
                {
                    name: 'id',
                    type: 'int'
                },
                {
                    name: 'name',
                    type: 'string'
                },
                {
                    name: 'address',
                    type: 'string'
                },
                {
                    name: 'country',
                    type: 'string'
                }
            ]
        }, cfg)]);
    }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_ext_direct-0.0.2 examples/rack/html/NamesApp/app/store/NamesStore.js
ruby_ext_direct-0.0.1 examples/rack/html/NamesApp/app/store/NamesStore.js