class type events =Inheritsobject
..end
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:
Ext_data_Store.t Js.t
The store
Ext_data_Model.t Js.js_array Js.t
The Model instances that were added
Js.number Js.t
The index at which the instances were inserted
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
This Store
Ext_data_Operation.t Js.t
The Ext.data.Operation object that will be passed to the Proxy to load the Store
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
_ Js.t
Hash of all records to be synchronized, broken down into create, update and destroy
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
The Store object
Ext_data_Model.t Js.js_array Js.t
The array of records that were removed (In the order they appear in the Store)
Js.number Js.t Js.js_array Js.t
The indexes of the records that were removed
bool Js.t
true
if the child nodes are being removed so they can be moved to another position in this Store.
_ Js.t
The options object passed to Ext.util.Observable.addListener.
method clear : 'f.
(t Js.t -> 'f Js.t -> unit) Js.callback
Js.writeonly_prop
Fired after the removeAll method is called.
Parameters:
Ext_data_Store.t Js.t
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
The data store
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
Ext_data_Model.t Js.js_array Js.t
An array of records
bool Js.t
True if the operation was successful.
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
_ Js.t
The JSON metadata
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
The data store
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
The Store object
Ext_data_Model.t Js.t
The record that was removed
Js.number Js.t
The index of the record that was removed
bool Js.t
true
if the child node is being removed so it can be moved to another position in this Store.
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
Ext_data_Model.t Js.t
The Model instance that was updated
Js.js_string Js.t
The update operation being performed. Value may be one of:
Ext.data.Model.EDIT
Ext.data.Model.REJECT
Ext.data.Model.COMMIT
Js.js_string Js.t Js.js_array Js.t
Array of field names changed during edit.
_ Js.t
The options object passed to Ext.util.Observable.addListener.
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:
Ext_data_Store.t Js.t
This Store
Ext_data_Operation.t Js.t
The Operation object that was used in the write
_ Js.t
The options object passed to Ext.util.Observable.addListener.