Data.Store Class
Item Index
Methods
_basicStoreConfigurations
(
Object
private
-
config
Basic view configurations when defining/creating a view
Parameters:
-
config
Object(optional)
Returns:
Object:
_loadStore
(
Object
private
-
store
-
options
Used by Firebrick.store.Base:load GET
Parameters:
-
store
ObjectFirebrick.store.Base object
-
options
Object-
async
Boolean[default=store.async]
-
callback
Function[store, jsonObject, status, response]
-
error
Function[response, error, errorMessage]
-
scope
Object
-
Returns:
Object:
store
_submit
(
Object
private
-
store
-
callback
Submit the given store with its data to the specified url POST
Parameters:
-
store
Object//Firebricks.store.Base class
-
callback
Function(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:
-
name
Stringif string, then Firebrick:create is called
-
config
Objectdata 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