Ext.data.JsonP.Ext_form_action_Action({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":["Ext.Base"],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"property","name":"failureType","id":"property-failureType"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"property","name":"response","id":"property-response"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"property","name":"result","id":"property-result"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"property","name":"type","id":"property-type"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.form.action.Action","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"createCallback","id":"method-createCallback"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"getMethod","id":"method-getMethod"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"getParams","id":"method-getParams"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"getUrl","id":"method-getUrl"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"handleResponse","id":"method-handleResponse"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"onFailure","id":"method-onFailure"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"onSuccess","id":"method-onSuccess"},{"meta":{"private":true},"owner":"Ext.form.action.Action","tagname":"method","name":"processResponse","id":"method-processResponse"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"method","name":"run","id":"method-run"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"failure","id":"cfg-failure"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"form","id":"cfg-form"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"headers","id":"cfg-headers"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"method","id":"cfg-method"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"params","id":"cfg-params"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"reset","id":"cfg-reset"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"scope","id":"cfg-scope"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"submitEmptyText","id":"cfg-submitEmptyText"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"success","id":"cfg-success"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"timeout","id":"cfg-timeout"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"url","id":"cfg-url"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"waitMsg","id":"cfg-waitMsg"},{"meta":{},"owner":"Ext.form.action.Action","tagname":"cfg","name":"waitTitle","id":"cfg-waitTitle"}]},"tagname":"class","extends":"Ext.Base","html":"

Alternate names

Ext.form.Action

Hierarchy

Ext.Base
Ext.form.action.Action

Subclasses

Files

The subclasses of this class provide actions to perform upon Forms.

\n\n

Instances of this class are only created by a Form when the Form needs to perform an action\nsuch as submit or load. The Configuration options listed for this class are set through the Form's action methods:\nsubmit, load and doAction

\n\n

The instance of Action which performed the action is passed to the success and failure callbacks of the Form's action\nmethods (submit, load and\ndoAction), and to the actioncomplete and\nactionfailed event handlers.

\n
Defined By

Config options

Ext.form.action.Action
view source
: Function
The function to call when a failure packet was received, or when an error ocurred in the Ajax communication. ...

The function to call when a failure packet was received, or when an error ocurred in the Ajax communication.

\n

Parameters

Ext.form.action.Action
view source
: Ext.form.Basic
The BasicForm instance that is invoking this Action. ...

The BasicForm instance that is invoking this Action. Required.

\n
Ext.form.action.Action
view source
: Object
Extra headers to be sent in the AJAX request for submit and load actions. ...

Extra headers to be sent in the AJAX request for submit and load actions.\nSee Ext.data.proxy.Ajax.headers.

\n
Ext.form.action.Action
view source
: String
The HTTP method to use to access the requested URL. ...

The HTTP method to use to access the requested URL.\nDefaults to the BasicForm's method, or 'POST' if not specified.

\n
Ext.form.action.Action
view source
: Object/String
Extra parameter values to pass. ...

Extra parameter values to pass. These are added to the Form's Ext.form.Basic.baseParams and passed to the\nspecified URL along with the Form's input fields.

\n\n

Parameters are encoded as standard HTTP parameters using Ext.Object.toQueryString.

\n
Ext.form.action.Action
view source
: Boolean
When set to true, causes the Form to be reset on Action success. ...

When set to true, causes the Form to be reset on Action success. If specified,\nthis happens before the success callback is called and before the Form's\nactioncomplete event fires.

\n
Ext.form.action.Action
view source
: Object
The scope in which to call the configured success and failure callback functions\n(the this reference for the callback...

The scope in which to call the configured success and failure callback functions\n(the this reference for the callback functions).

\n
Ext.form.action.Action
view source
: Boolean
If set to true, the emptyText value will be sent with the form when it is submitted. ...

If set to true, the emptyText value will be sent with the form when it is submitted.

\n

Defaults to: true

Ext.form.action.Action
view source
: Function
The function to call when a valid success return packet is received. ...

The function to call when a valid success return packet is received.

\n

Parameters

Ext.form.action.Action
view source
: Number
The number of seconds to wait for a server response before failing with the failureType as\nCONNECT_FAILURE. ...

The number of seconds to wait for a server response before failing with the failureType as\nCONNECT_FAILURE. If not specified, defaults to the configured\ntimeout of the form.

\n
Ext.form.action.Action
view source
: String
The URL that the Action is to invoke. ...

The URL that the Action is to invoke. Will default to the url configured on the\nform.

\n
Ext.form.action.Action
view source
waitMsg : String

The message to be displayed by a call to Ext.window.MessageBox.wait during the time the action is being\nprocessed.

\n

The message to be displayed by a call to Ext.window.MessageBox.wait during the time the action is being\nprocessed.

\n
Ext.form.action.Action
view source
waitTitle : String

The title to be displayed by a call to Ext.window.MessageBox.wait during the time the action is being\nprocessed.

\n

The title to be displayed by a call to Ext.window.MessageBox.wait during the time the action is being\nprocessed.

\n

Properties

Defined By

Instance Properties

...
\n

Defaults to: "Ext.Base"

...
\n

Defaults to: {}

Ext.form.action.Action
view source
: String
The type of failure detected will be one of these:\nCLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE. ...

The type of failure detected will be one of these:\nCLIENT_INVALID, SERVER_INVALID, CONNECT_FAILURE, or LOAD_FAILURE.

\n\n

Usage:

\n\n
var fp = new Ext.form.Panel({\n...\nbuttons: [{\n    text: 'Save',\n    formBind: true,\n    handler: function(){\n        if(fp.getForm().isValid()){\n            fp.getForm().submit({\n                url: 'form-submit.php',\n                waitMsg: 'Submitting your data...',\n                success: function(form, action){\n                    // server responded with success = true\n                    var result = action.result;\n                },\n                failure: function(form, action){\n                    if (action.failureType === Ext.form.action.Action.CONNECT_FAILURE) {\n                        Ext.Msg.alert('Error',\n                            'Status:'+action.response.status+': '+\n                            action.response.statusText);\n                    }\n                    if (action.failureType === Ext.form.action.Action.SERVER_INVALID){\n                        // server responded with success = false\n                        Ext.Msg.alert('Invalid', action.result.errormsg);\n                    }\n                }\n            });\n        }\n    }\n},{\n    text: 'Reset',\n    handler: function(){\n        fp.getForm().reset();\n    }\n}]\n
\n
...
\n

Defaults to: []

...
\n

Defaults to: {}

...
\n

Defaults to: true

Ext.form.action.Action
view source
response : Object

The raw XMLHttpRequest object used to perform the action.

\n

The raw XMLHttpRequest object used to perform the action.

\n
Ext.form.action.Action
view source
result : Object

The decoded response object containing a boolean success property and other, action-specific properties.

\n

The decoded response object containing a boolean success property and other, action-specific properties.

\n
Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); // dependent on 'this'\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n
Ext.form.action.Action
view source
: String
The type of action this Action instance performs. ...

The type of action this Action instance performs. Currently only \"submit\" and \"load\" are supported.

\n
Defined By

Static Properties

...
\n

Defaults to: []

Ext.form.action.Action
view source
: Stringstatic
Failure type returned when client side validation of the Form fails thus aborting a submit action. ...

Failure type returned when client side validation of the Form fails thus aborting a submit action. Client\nside validation is performed unless Ext.form.action.Submit.clientValidation is explicitly set to\nfalse.

\n

Defaults to: "client"

Ext.form.action.Action
view source
: Stringstatic
Failure type returned when a communication error happens when attempting to send a request to the remote\nserver. ...

Failure type returned when a communication error happens when attempting to send a request to the remote\nserver. The response may be examined to provide further information.

\n

Defaults to: "connect"

Ext.form.action.Action
view source
: Stringstatic
Failure type returned when the response's success property is set to false, or no field values are returned\nin the re...

Failure type returned when the response's success property is set to false, or no field values are returned\nin the response's data property.

\n

Defaults to: "load"

Ext.form.action.Action
view source
: Stringstatic
Failure type returned when server side processing fails and the result's success property is set to\nfalse. ...

Failure type returned when server side processing fails and the result's success property is set to\nfalse.

\n\n

In the case of a form submission, field-specific error messages may be returned in the result's\nerrors property.

\n

Defaults to: "server"

Methods

Defined By

Instance Methods

Ext.form.action.Action
view source
new( [Object config] ) : Object
Creates new Action. ...

Creates new Action.

\n

Parameters

  • config : Object (optional)

    Config object.

    \n

Returns

( Array/Arguments args ) : Objectdeprecatedprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n
\n

This method has been deprecated

\n

as of 4.1. Use callParent instead.

\n\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callOverridden(arguments)

    \n

Returns

  • Object

    Returns the result of calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the \"parent\" method of the current method. ...

Call the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).

\n\n
 Ext.define('My.Base', {\n     constructor: function (x) {\n         this.x = x;\n     },\n\n     statics: {\n         method: function (x) {\n             return x;\n         }\n     }\n });\n\n Ext.define('My.Derived', {\n     extend: 'My.Base',\n\n     constructor: function () {\n         this.callParent([21]);\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // alerts 21\n
\n\n

This can be used with an override as follows:

\n\n
 Ext.define('My.DerivedOverride', {\n     override: 'My.Derived',\n\n     constructor: function (x) {\n         this.callParent([x*2]); // calls original My.Derived constructor\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // now alerts 42\n
\n\n

This also works with static methods.

\n\n
 Ext.define('My.Derived2', {\n     extend: 'My.Base',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Base.method\n         }\n     }\n });\n\n alert(My.Base.method(10);     // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\n

Lastly, it also works with overridden static methods.

\n\n
 Ext.define('My.Derived2Override', {\n     override: 'My.Derived2',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Derived2.method\n         }\n     }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result of calling the parent method

    \n
Ext.form.action.Action
view source
( )private
Creates a callback object. ...

Creates a callback object.

\n
...
\n

Parameters

Returns the initial configuration passed to constructor when instantiating\nthis class. ...

Returns the initial configuration passed to constructor when instantiating\nthis class.

\n

Parameters

  • name : String (optional)

    Name of the config option to return.

    \n

Returns

  • Object/Mixed

    The full config object or a single config value\nwhen name parameter specified.

    \n
Ext.form.action.Action
view source
( ) : Stringprivate
Determine the HTTP method to be used for the request. ...

Determine the HTTP method to be used for the request.

\n

Returns

Ext.form.action.Action
view source
( ) : Objectprivate
Get the set of parameters specified in the BasicForm's baseParams and/or the params option. ...

Get the set of parameters specified in the BasicForm's baseParams and/or the params option.\nItems in params override items of the same name in baseParams.

\n

Returns

  • Object

    the full set of parameters

    \n
Ext.form.action.Action
view source
( ) : Stringprivate
Build the URL for the AJAX request. ...

Build the URL for the AJAX request. Used by the standard AJAX submit and load actions.

\n

Returns

Ext.form.action.Action
view source
( Object response )private
Handles the raw response and builds a result object from it. ...

Handles the raw response and builds a result object from it. Must be implemented by subclasses.

\n

Parameters

...
\n

Parameters

Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

( Object names, Object callback, Object scope )private
...
\n

Parameters

Ext.form.action.Action
view source
( Object response )private
Handles a failure response. ...

Handles a failure response.

\n

Parameters

Ext.form.action.Action
view source
( Object response )private
Callback method that gets invoked when the action completes successfully. ...

Callback method that gets invoked when the action completes successfully. Must be implemented by subclasses.

\n

Parameters

Ext.form.action.Action
view source
( Object response ) : Object/Booleanprivate
Validates that a response contains either responseText or responseXML and invokes\nhandleResponse to build the result ...

Validates that a response contains either responseText or responseXML and invokes\nhandleResponse to build the result object.

\n

Parameters

  • response : Object

    The raw response object.

    \n

Returns

  • Object/Boolean

    The result object as built by handleResponse, or true if\nthe response had empty responseText and responseXML.

    \n
Ext.form.action.Action
view source
( )
Invokes this action using the current configuration. ...

Invokes this action using the current configuration.

\n
( Object config, Object applyIfNotSet )private
...
\n

Parameters

Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

Defined By

Static Methods

( Object config )privatestatic
...
\n

Parameters

...
\n

Parameters

( Object name, Object member )privatestatic
...
\n

Parameters

Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.addMembers({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\n

Parameters

Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n
\n

Parameters

Returns

( Object xtype )privatestatic
...
\n

Parameters

( Ext.Base fromClass, Array/String members ) : Ext.Baseprivatestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : Array/String

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\n

Parameters

( Object config )privatestatic
...
\n

Parameters

Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\n

Returns

( )deprecatedstatic
Adds members to class. ...

Adds members to class.

\n
\n

This method has been deprecated since 4.1

\n

Use addMembers instead.

\n\n
\n
( Object name, Object mixinClass )privatestatic
Used internally by the mixins pre-processor ...

Used internally by the mixins pre-processor

\n

Parameters

( Object fn, Object scope )privatestatic
...
\n

Parameters

( Object members ) : Ext.Basedeprecatedstatic
Override members of this class. ...

Override members of this class. Overridden methods can be invoked via\ncallParent.

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n\n

As of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:

\n\n
Ext.define('My.CatOverride', {\n    override: 'My.Cat',\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n
\n\n

The above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).

\n
\n

This method has been deprecated since 4.1.0

\n

Use Ext.define instead

\n\n
\n

Parameters

  • members : Object

    The properties to add to this class. This should be\nspecified as an object literal containing one or more properties.

    \n

Returns

","subclasses":["Ext.form.action.Submit","Ext.form.action.Load"],"name":"Ext.form.action.Action","alternateClassNames":["Ext.form.Action"],"inheritdoc":null,"files":[{"href":"Action2.html#Ext-form-action-Action","filename":"Action.js"}],"html_meta":{},"singleton":false,"id":"class-Ext.form.action.Action","statics":{"property":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"property","name":"$onExtended","id":"static-property-S-onExtended"},{"meta":{"static":true},"owner":"Ext.form.action.Action","tagname":"property","name":"CLIENT_INVALID","id":"static-property-CLIENT_INVALID"},{"meta":{"static":true},"owner":"Ext.form.action.Action","tagname":"property","name":"CONNECT_FAILURE","id":"static-property-CONNECT_FAILURE"},{"meta":{"static":true},"owner":"Ext.form.action.Action","tagname":"property","name":"LOAD_FAILURE","id":"static-property-LOAD_FAILURE"},{"meta":{"static":true},"owner":"Ext.form.action.Action","tagname":"property","name":"SERVER_INVALID","id":"static-property-SERVER_INVALID"}],"event":[],"css_var":[],"method":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addConfig","id":"static-method-addConfig"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addInheritableStatics","id":"static-method-addInheritableStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addMember","id":"static-method-addMember"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addMembers","id":"static-method-addMembers"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addStatics","id":"static-method-addStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addXtype","id":"static-method-addXtype"},{"meta":{"private":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"borrow","id":"static-method-borrow"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"create","id":"static-method-create"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"createAlias","id":"static-method-createAlias"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"extend","id":"static-method-extend"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"getName","id":"static-method-getName"},{"meta":{"deprecated":{"text":"Use {@link #addMembers} instead.","version":"4.1"},"static":true},"owner":"Ext.Base","tagname":"method","name":"implement","id":"static-method-implement"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"mixin","id":"static-method-mixin"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"onExtended","id":"static-method-onExtended"},{"meta":{"deprecated":{"text":"Use {@link Ext#define Ext.define} instead","version":"4.1.0"},"markdown":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"override","id":"static-method-override"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"triggerExtended","id":"static-method-triggerExtended"}],"css_mixin":[],"cfg":[]},"requires":[]});