Class type Ext_data_AbstractStore.events


class type events = object .. end
Inherits
method add : 'a.
(t Js.t ->
Ext_data_Model.t Js.js_array Js.t -> Js.number Js.t -> 'a Js.t -> unit)
Js.callback Js.writeonly_prop

Fired when a Model instance has been added to this Store.

Parameters:


method beforeload : 'b.
(t Js.t ->
Ext_data_Operation.t Js.t -> 'b Js.t -> unit)
Js.callback Js.writeonly_prop

Fires before a request is made for a new data object. If the beforeload handler returns false the load action will be canceled.

Parameters:


method beforesync : 'c 'd. ('c Js.t -> 'd Js.t -> unit) Js.callback Js.writeonly_prop

Fired before a call to sync is executed. Return false from any listener to cancel the sync

Parameters:


method bulkremove : 'e.
(t Js.t ->
Ext_data_Model.t Js.js_array Js.t ->
Js.number Js.t Js.js_array Js.t -> bool Js.t -> 'e Js.t -> unit)
Js.callback Js.writeonly_prop

Fired at the end of the remove method when all records in the passed array have been removed.

If many records may be removed in one go, then it is more efficient to listen for this event and perform any processing for a bulk remove than to listen for many remove events.

Parameters:


method clear : 'f.
(t Js.t -> 'f Js.t -> unit) Js.callback
Js.writeonly_prop

Fired after the removeAll method is called.

Parameters:


method datachanged : 'g.
(t Js.t -> 'g Js.t -> unit) Js.callback
Js.writeonly_prop

Fires whenever the records in the Store have changed in some way - this could include adding or removing records, or updating the data in existing records

Parameters:


method load : 'h.
(t Js.t ->
Ext_data_Model.t Js.js_array Js.t -> bool Js.t -> 'h Js.t -> unit)
Js.callback Js.writeonly_prop

Fires whenever the store reads data from a remote data source.

Parameters:


method metachange : 'i 'j.
(t Js.t -> 'i Js.t -> 'j Js.t -> unit) Js.callback
Js.writeonly_prop

Fires when this store's underlying reader (available via the proxy) provides new metadata. Metadata usually consists of new field definitions, but can include any configuration data required by an application, and can be processed as needed in the event handler. This event is currently only fired for JsonReaders.

Parameters:


method refresh : 'k.
(t Js.t -> 'k Js.t -> unit) Js.callback
Js.writeonly_prop

Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a widget that is using this Store as a Record cache should refresh its view.

Parameters:


method remove : 'l.
(t Js.t ->
Ext_data_Model.t Js.t -> Js.number Js.t -> bool Js.t -> 'l Js.t -> unit)
Js.callback Js.writeonly_prop

Fired when a Model instance has been removed from this Store.

If many records may be removed in one go, then it is more efficient to listen for the bulkremove event and perform any processing for a bulk remove than to listen for this remove event.

Parameters:


method update : 'm.
(t Js.t ->
Ext_data_Model.t Js.t ->
Js.js_string Js.t -> Js.js_string Js.t Js.js_array Js.t -> 'm Js.t -> unit)
Js.callback Js.writeonly_prop

Fires when a Model instance has been updated.

Parameters:


method write : 'n.
(t Js.t ->
Ext_data_Operation.t Js.t -> 'n Js.t -> unit)
Js.callback Js.writeonly_prop

Fires whenever a successful write has been made via the configured Proxy

Parameters: