Data.Store Class
Item Index
Methods
_basicStoreConfigurations
(
Object
private
-
config
Basic view configurations when defining/creating a view
Parameters:
-
configObject(optional)
Returns:
Object:
_loadStore
(
Object
private
-
store -
options
Used by Firebrick.store.Base:load GET
Parameters:
-
storeObjectFirebrick.store.Base object
-
optionsObject-
asyncBoolean[default=store.async]
-
callbackFunction[store, jsonObject, status, response]
-
errorFunction[response, error, errorMessage]
-
scopeObject
-
Returns:
Object:
store
_submit
(
Object
private
-
store -
callback
Submit the given store with its data to the specified url POST
Parameters:
-
storeObject//Firebricks.store.Base class
-
callbackFunction(optional) function to call on store submission success
Returns:
Object:
store
createStore
(
Object
-
name -
config
creates a new Firebrick.store.Base store to be used OR if a name and config are supplied, then Firebrick.create() is called
Parameters:
-
nameStringif string, then Firebrick:create is called
-
configObjectdata to config the class with - called in conjuction when name is set
Returns:
Object:
Firebrick.store.Base
Example:
//creates a new class Firebrick.store.Base to be used
createStore({
data:{name:"bob"}
});
createStore("MyApp.store.MyStore", {}); //Firebrick.create() is called
createStore() //returns a Store class to be used
