Properties Methods Events Config Options Direct Link
Observable
  Store
    SlingStore

Class CQ.data.SlingStore

Package:CQ.data
Class:SlingStore
Extends:CQ.Ext.data.Store
Clientlib:cq.widgets
Small helper class to make creating Stores for remotely-loaded JSON data provided by Sling easier. SlingStore is pre-configured with a built-in HttpProxy and a SlingReader.
var store = new CQ.data.SlingStore({
    url: 'foo/bar.json'
});
This would consume a response of the form:
{
    "title": "The Title",
    "text": "The text."
}

Config Options

Config Options Defined By
  url : String
The URL from which to load data through an HttpProxy.
SlingStore

Public Properties

Property Defined By
  baseParams : Object
See the corresponding configuration option for a description of this property. To modify this property see setBaseParam.
Store
  fields : CQ.Ext.util.MixedCollection
A MixedCollection containing the defined Fields for the Records stored in this Store. Read-only.
Store
  isDestroyed : Boolean True
Store
  multiSort : Boolean True
Store
  multiSortInfo : Object
Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields
Store

Public Methods

Method Defined By

Public Events

Event Defined By