class type t =Inheritsobject
..end
method isProxy : bool Js.t Js.prop
true
in this class to identify an object as an instantiated Proxy, or subclass thereof.
Defaults to: true
method isSynchronous : bool Js.t Js.prop
Identifies the proxy as (a)synchronous.
Defaults to: false
method batch : 'a. 'a Js.t -> Ext_data_Batch.t Js.t Js.meth
Performs a batch of Operations, in the order specified by batchOrder. Used internally by Ext.data.Store's sync method. Example usage:
myProxy.batch({
create : [myModel1, myModel2],
update : [myModel3],
destroy: [myModel4, myModel5]
});
Where the myModel* above are Model instances - in this case 1 and 2 are new instances and have not been saved before, 3 has been saved previously but needs to be updated, and 4 and 5 have already been saved but should now be destroyed.
Note that the previous version of this method took 2 arguments (operations and listeners). While this is still
supported for now, the current signature is now a single options
argument that can contain both operations and
listeners, in addition to other options. The multi-argument signature will likely be deprecated in a future release.
Parameters:
_ Js.t
Object containing one or more properties supported by the batch method:
Returns:
Ext_data_Batch.t Js.t
The newly created Batch
method create : 'b 'c. Ext_data_Operation.t Js.t -> 'b Js.callback -> 'c Js.t -> unit Js.meth
Performs the given create operation.
Parameters:
Ext_data_Operation.t Js.t
The Operation to perform
_ Js.callback
Callback function to be called when the Operation has completed (whether successful or not)
_ Js.t
Scope to execute the callback function in
method destroy : 'd 'e. Ext_data_Operation.t Js.t -> 'd Js.callback -> 'e Js.t -> unit Js.meth
Performs the given destroy operation.
Parameters:
Ext_data_Operation.t Js.t
The Operation to perform
_ Js.callback
Callback function to be called when the Operation has completed (whether successful or not)
_ Js.t
Scope to execute the callback function in
method getModel : Ext_data_Model.t Js.t Js.meth
Returns the model attached to this Proxy
Returns:
Ext_data_Model.t Js.t
The model
method getReader : Ext_data_reader_Reader.t Js.t Js.meth
Returns the reader currently attached to this proxy instance
Returns:
Ext_data_reader_Reader.t Js.t
The Reader instance
method getWriter : Ext_data_writer_Writer.t Js.t Js.meth
Returns the writer currently attached to this proxy instance
Returns:
Ext_data_writer_Writer.t Js.t
The Writer instance
method read : 'f 'g. Ext_data_Operation.t Js.t -> 'f Js.callback -> 'g Js.t -> unit Js.meth
Performs the given read operation.
Parameters:
Ext_data_Operation.t Js.t
The Operation to perform
_ Js.callback
Callback function to be called when the Operation has completed (whether successful or not)
_ Js.t
Scope to execute the callback function in
method setModel : 'h. 'h Js.t -> bool Js.t -> unit Js.meth
Sets the model associated with this proxy. This will only usually be called by a Store
Parameters:
_ Js.t
The new model. Can be either the model name string, or a reference to the model's constructor
bool Js.t
Sets the new model on the associated Store, if one is present
method setReader : 'i. 'i Js.t -> Ext_data_reader_Reader.t Js.t Js.meth
Sets the Proxy's Reader by string, config object or Reader instance
Parameters:
_ Js.t
The new Reader, which can be either a type string, a configuration object or an Ext.data.reader.Reader instance
Returns:
Ext_data_reader_Reader.t Js.t
The attached Reader object
method setWriter : 'j. 'j Js.t -> Ext_data_writer_Writer.t Js.t Js.meth
Sets the Proxy's Writer by string, config object or Writer instance
Parameters:
_ Js.t
The new Writer, which can be either a type string, a configuration object or an Ext.data.writer.Writer instance
Returns:
Ext_data_writer_Writer.t Js.t
The attached Writer object
method update : 'k 'l. Ext_data_Operation.t Js.t -> 'k Js.callback -> 'l Js.t -> unit Js.meth
Performs the given update operation.
Parameters:
Ext_data_Operation.t Js.t
The Operation to perform
_ Js.callback
Callback function to be called when the Operation has completed (whether successful or not)
_ Js.t
Scope to execute the callback function in