class type t =Inheritsobject..end
method actionCommitRecordsRe : Regexp.regexp Js.t Js.propThe RegExp used to categorize actions that require record commits.
Defaults to: /^(?:create|update)$/i
method actionSkipSyncRe : Regexp.regexp Js.t Js.propThe RegExp used to categorize actions that skip local record synchronization. This defaults to match 'destroy'.
Defaults to: /^destroy$/i
method allowWrite : bool Js.t Js.methChecks whether this operation should cause writing to occur.
Returns:
bool Js.t
Whether the operation should cause a write to occur.
method commitRecords : Ext_data_Model.t Js.js_array Js.t -> unit Js.methThis method is called to commit data to this instance's records given the records in the server response. This is followed by calling Ext.data.Model.commit on all those records (for 'create' and 'update' actions).
If this action is 'destroy', any server records are ignored and the Ext.data.Model.commit method is not called.
Parameters:
Ext_data_Model.t Js.js_array Js.t
An array of Ext.data.Model objects returned by the server.
method getError : 'a. 'a Js.t Js.meth
method getRecords : Ext_data_Model.t Js.js_array Js.t Js.methReturns the records associated with this operation. For read operations the records as set by the Proxy will be returned (returns null if the proxy has not yet set the records).
For create, update, and destroy operations the operation's initially configured records will be returned, although the proxy may modify these records' data at some point after the operation is initialized.
method getResultSet : Ext_data_ResultSet.t Js.t Js.methReturns the ResultSet object (if set by the Proxy). This object will contain the model instances as well as meta data such as number of instances fetched, number available etc
Returns:
Ext_data_ResultSet.t Js.t The ResultSet object
method hasException : bool Js.t Js.methReturns true if this Operation encountered an exception (see also getError)
Returns:
bool Js.t True if there was an exception
method isComplete : bool Js.t Js.methReturns true if the Operation has been completed
Returns:
bool Js.t True if the Operation is complete
method isRunning : bool Js.t Js.methReturns true if the Operation has been started but has not yet completed.
Returns:
bool Js.t
True if the Operation is currently running
method isStarted : bool Js.t Js.methReturns true if the Operation has been started. Note that the Operation may have started AND completed, see isRunning to test if the Operation is currently running.
Returns:
bool Js.t True if the Operation has started
method setCompleted : unit Js.methMarks the Operation as completed.
method setException : 'b. 'b Js.t Js.optdef -> unit Js.methMarks the Operation as having experienced an exception. Can be supplied with an option error message/object.
Parameters:
_ Js.t (optional) error string/object
method setStarted : unit Js.methMarks the Operation as started.
method setSuccessful : unit Js.methMarks the Operation as successful.
method wasSuccessful : bool Js.t Js.methReturns true if the Operation has completed and was successful
Returns:
bool Js.t True if successful