Class type Ext_data_AbstractStore.configs


class type configs = object .. end
Inherits
method autoLoad : 'a. 'a Js.t Js.prop

If data is not specified, and if autoLoad is true or an Object, this store's load method is automatically called after creation. If the value of autoLoad is an Object, this Object will be passed to the store's load method.


method autoSync : bool Js.t Js.prop

True to automatically sync the Store with its Proxy after every edit to one of its Records. Defaults to false.

Defaults to: false

method batchUpdateMode : Js.js_string Js.t Js.prop

Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's internal representation of the data after each operation of the batch has completed, 'complete' will wait until the entire batch has been completed before updating the Store's data. 'complete' is a good choice for local storage proxies, 'operation' is better for remote proxies, where there is a comparatively high latency.

Defaults to: 'operation'

method fields : 'b. 'b Js.t Js.js_array Js.t Js.prop

This may be used in place of specifying a model configuration. The fields should be a set of Ext.data.Field configuration objects. The store will automatically create a Ext.data.Model with these fields. In general this configuration option should only be used for simple stores like a two-field store of ComboBox. For anything more complicated, such as specifying a particular id property or associations, a Ext.data.Model should be defined and specified for the model config.


method filterOnLoad : bool Js.t Js.prop

If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired. Defaults to true, ignored if remoteFilter is true

Defaults to: true

method filters : 'c. 'c Js.t Js.prop

Array of Filters for this store. Can also be passed array of functions which will be used as the filterFn config for filters:

filters: [
    function(item) {
        return item.weight > 0;
    }
]

To filter after the grid is loaded use the filterBy function.


method model : Js.js_string Js.t Js.prop

Name of the Model associated with this store. The string is used as an argument for Ext.ModelManager.getModel.


method proxy : 'd. 'd Js.t Js.prop

The Proxy to use for this Store. This can be either a string, a config object or a Proxy instance - see setProxy for details.


method remoteFilter : bool Js.t Js.prop

True to defer any filtering operation to the server. If false, filtering is done locally on the client.

Defaults to: false

method remoteSort : bool Js.t Js.prop

True to defer any sorting operation to the server. If false, sorting is done locally on the client.

Defaults to: false

method sortOnLoad : bool Js.t Js.prop

If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired. Defaults to true, igored if remoteSort is true

Defaults to: true

method statefulFilters : bool Js.t Js.prop

Configure as true to have the filters saved when a client grid saves its state.

Defaults to: false

method storeId : Js.js_string Js.t Js.prop

Unique identifier for this store. If present, this Store will be registered with the Ext.data.StoreManager, making it easy to reuse elsewhere.

Note that when store is instatiated by Controller, the storeId will be overridden by the name of the store.