view app/model/Query.js @ 272:852dc338894e

Make custom comboboxed selectable
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 06 Aug 2013 16:53:47 +0200
parents d40a552382a3
children 5e4d926d7717
line wrap: on
line source
Ext.define('Lada.model.Query', {
    extend: 'Ext.data.Model',
    fields: [
        {name: "id"},
        {name: "name"},
        {name: "description"},
        {name: "sql"},
        {name: "results"},
        {name: "filters"},
    ],
    proxy: {
        type: 'rest',
        url: 'server/rest/query',
        reader: {
            type: 'json',
            root: 'data'
        }
    }
});

http://lada.wald.intevation.org