Properties Methods Events Config Options Direct Link
Observable
  Store
    JsonStore

Class Ext.data.JsonStore

Package:Ext.data
Defined In:JsonStore.js
Class:JsonStore
Extends:Store
Small helper class to make creating Stores for JSON data easier.
var store = new Ext.data.JsonStore({
    url: 'get-images.php',
    root: 'images',
    fields: ['name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date'}]
});
Note: Although they are not listed, this class inherits all of the config options of Store, JsonReader and HttpProxy (unless inline data is provided).

Config Options

Config Options Defined By
  autoLoad : Boolean/Object
If passed, this store's load method is automatically called after creation with the autoLoad object
Store
  baseParams : Object
An object containing properties which are to be sent as parameters on any HTTP request
Store
  data : Array
Inline data to be loaded when the store is initialized.
Store
  fields : Array
An array of field definition objects, or field name strings.
JsonStore
  proxy : Ext.data.DataProxy
The Proxy object which provides access to a data object.
Store
  sortInfo : Object
A config object in the format: {field: "fieldName", direction: "ASC|DESC"}
Store
  url : String
If passed, an HttpProxy is created for the passed URL
Store

Public Properties

This class has no public properties.

Public Methods

Method Defined By

Public Events

Event Defined By