|
| api : ObjectSpecific urls to call on CRUD action methods "read", "create", "update" and "destroy".
Defaults to:api: {
read ... Specific urls to call on CRUD action methods "read", "create", "update" and "destroy".
Defaults to: api: {
@@ -58,9 +58,9 @@ myStore.on({
}
});
| DataProxy |
| directFn : FunctionFunction to call when executing a request. directFn is a simple alternative to defining the api configuration-parame... Function to call when executing a request. directFn is a simple alternative to defining the api configuration-parameter
-for Store's which will not implement a full CRUD api. | DirectProxy |
| doRequest : Function Abstract method that should be implemented in all subclasses
+for Store's which will not implement a full CRUD api. | DirectProxy |
| doRequest : FunctionAbstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers.
... | DataProxy |
| listeners : Object | DataProxy |
| listeners : ObjectA config object containing one or more event handlers to be added to this
object during initialization. This should ... A config object containing one or more event handlers to be added to this
object during initialization. This should be a valid listeners config object as specified in the
addListener example for attaching multiple handlers at once.
@@ -115,7 +115,7 @@ Ext.DomObserver = Ext.extend(Object, {
typeAhead: true,
mode: 'local',
triggerAction: 'all'
-}); | Observable |
| paramOrder : Array/StringDefaults to undefined. A list of params to be executed
+}); | Observable |
| onRead : FunctionAbstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. ... Abstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. Callback for read action. | DataProxy |
| onWrite : FunctionAbstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. ... Abstract method that should be implemented in all subclasses. Note: Should only be used by custom-proxy developers. Callback for create, update and destroy actions. | DataProxy |
| paramOrder : Array/StringDefaults to undefined. A list of params to be executed
server side. Specify the params in the order in which they m... Defaults to undefined. A list of params to be executed
server side. Specify the params in the order in which they must be executed on the server-side
as either (1) an Array of String values, or (2) a String of params delimited by either whitespace,
@@ -213,7 +213,15 @@ Or a shorthand syntax:
scope: this
}); Returns: | Observable |
| destroy()
:
- voidDestroys the proxy by purging any event listeners and cancelling any active requests. Destroys the proxy by purging any event listeners and cancelling any active requests. | DataProxy |
| enableBubble( Object events )
+ voidDestroys the proxy by purging any event listeners and cancelling any active requests. Destroys the proxy by purging any event listeners and cancelling any active requests. | DataProxy |
| doRequest( String action , Ext.data.Record/Ext.data.Record[] rs , Object params , Ext.data.DataReader reader , Function callback , Object scope , Object arg )
+ :
+ voidDirectProxy implementation of Ext.data.DataProxy.doRequest DirectProxy implementation of Ext.data.DataProxy.doRequestParameters:action : StringThe crud action type (create, read, update, destroy) rs : Ext.data.Record/Ext.data.Record[]If action is load, rs will be null params : ObjectAn object containing properties which are to be used as HTTP parameters
+for the request to the remote server. reader : Ext.data.DataReaderThe Reader object which converts the data
+object into a block of Ext.data.Records. callback : FunctionA function to be called after the request.
+The callback is passed the following arguments:
+- r : Ext.data.Record[] The block of Ext.data.Records.
+- options: Options object from the action request
+- success: Boolean success indicator
scope : ObjectThe scope (this reference) in which the callback function is executed. Defaults to the browser window. arg : ObjectAn optional argument which is passed to the callback as its second parameter. Returns: | DirectProxy |
| enableBubble( String/Array events )
:
voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
@@ -222,13 +230,13 @@ this.getBubbleTarget() if present... Enables events fi
implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to
access the required target more quickly.
Example: Ext.override(Ext.form.Field, {
-// Add functionality to Field's initComponent to enable the change event to bubble
- initComponent: Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
}),
-// We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget: function() {
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
if (!this.formPanel) {
this.formPanel = this.findParentByType('form');
}
@@ -243,11 +251,11 @@ access the required target more quickly.
}],
listeners: {
change: function() {
-// Title goes red if form has been modified.
- myForm.header.setStyle("color", "red");
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
}
}
-});
| Observable |
| fireEvent( String eventName , Object... args )
+}); | Observable |
| fireEvent( String eventName , Object... args )
:
BooleanFires the specified event with the passed parameters (minus the event name).
An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name).
@@ -265,7 +273,11 @@ the corresponding code for CRUD action. Param
voidDeprecated load method using old method signature. See {@doRequest} for preferred method. Deprecated load method using old method signature. See {@doRequest} for preferred method. Parameters:params : Objectreader : Objectcallback : Objectscope : Objectarg : Object Returns: | DataProxy |
| on( String eventName , Function handler , [Object scope ], [Object options ] )
:
voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:eventName : StringThe type of event to listen for handler : FunctionThe method the event invokes scope : Object(optional) The scope (this reference) in which the handler function is executed.
-If omitted, defaults to the object which fired the event. options : Object(optional) An object containing handler configuration. Returns: | Observable |
| purgeListeners()
+If omitted, defaults to the object which fired the event.options : Object(optional) An object containing handler configuration. Returns: | Observable |
| onRead( String action , Object trans , Object result , Object res )
+ :
+ voidCallback for read actions Callback for read actions Parameters:action : String[Ext.data.Api.actions.create|read|update|destroy] trans : ObjectThe request transaction object result : ObjectData object picked out of the server-response. res : ObjectThe server response Returns: | DirectProxy |
| onWrite( String action , Object trans , Object result , Object res , Ext.data.Record/[Ext.data.Record] rs )
+ :
+ voidCallback for write actions Callback for write actions Parameters:action : Stringtrans : ObjectThe request transaction object result : ObjectData object picked out of the server-response. res : ObjectThe server response rs : Ext.data.Record/[Ext.data.Record]The Store resultset associated with the action. Returns: | DirectProxy |
| purgeListeners()
:
voidRemoves all listeners for this object Removes all listeners for this object | Observable |
| relayEvents( Object o , Array events )
:
@@ -273,7 +285,7 @@ the corresponding code for CRUD action.Param
:
voidRemoves an event handler. Removes an event handler. | Observable |
| request( String action , Ext.data.Record/Ext.data.Record[]/null rs , Object params , Ext.data.DataReader reader , Function callback , Object scope , Object options )
:
- voidAll proxy actions are executed through this method. Automatically fires the "before" + action event All proxy actions are executed through this method. Automatically fires the "before" + action event | DataProxy |
| resumeEvents()
+ voidAll proxy actions are executed through this method. Automatically fires the "before" + action event All proxy actions are executed through this method. Automatically fires the "before" + action event | DataProxy |
| resumeEvents()
:
voidResume firing events. (see suspendEvents)
If events were suspended using the queueSuspended parameter, then all
|