|
| addBehaviors( Object obj )
+ :
+ voidApplies event listeners to elements by selectors when the document is ready.
The event name is specified with an @... Applies event listeners to elements by selectors when the document is ready.
The event name is specified with an @ suffix.
Ext.addBehaviors({
@@ -21,20 +24,20 @@ The event name is specified with an @ suffix.
'#foo a@click' : function(e, t){
// do something
},
-
+
// add the same listener to multiple selectors (separated by comma BEFORE the @)
'#foo a, #bar span.some-class@mouseover' : function(){
// do something
}
-});
| Ext |
| apply( Object obj , Object config , Object defaults )
- :
- ObjectCopies all the properties of config to obj. Copies all the properties of config to obj. Parameters:obj : ObjectThe receiver of the properties config : ObjectThe source of the properties defaults : ObjectA different object that will also be applied for default values Returns: | Ext |
| applyIf( Object obj , Object config )
- :
- ObjectCopies all the properties of config to obj if they don't already exist. Copies all the properties of config to obj if they don't already exist. | Ext |
| clean( Array/NodeList arr )
- :
- ArrayCreates a copy of the passed Array with falsy values removed. Creates a copy of the passed Array with falsy values removed. | Ext |
| copyTo( Object The , Object The , Array/String Either )
- :
- ObjectCopies a set of named properties fom the source object to the destination object.
+}); | Ext |
| apply( Object obj , Object config , Object defaults )
+ :
+ ObjectCopies all the properties of config to obj. Copies all the properties of config to obj. Parameters:obj : ObjectThe receiver of the properties config : ObjectThe source of the properties defaults : ObjectA different object that will also be applied for default values Returns: | Ext |
| applyIf( Object obj , Object config )
+ :
+ ObjectCopies all the properties of config to obj if they don't already exist. Copies all the properties of config to obj if they don't already exist. | Ext |
| clean( Array/NodeList arr )
+ :
+ ArrayCreates a copy of the passed Array with falsy values removed. Creates a copy of the passed Array with falsy values removed. | Ext |
| copyTo( Object dest , Object source , Array/String names )
+ :
+ ObjectCopies a set of named properties fom the source object to the destination object.
example:ImageComponent = Ext.extend... Copies a set of named properties fom the source object to the destination object.
example: ImageComponent = Ext.extend(Ext.BoxComponent, {
initComponent: function() {
@@ -42,243 +45,254 @@ example:ImageComponent = Ext.extend...
Copies a set of na
MyComponent.superclass.initComponent.apply(this, arguments);
this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');
}
-}); Parameters:Returns:Object The modified object.
| Ext |
| create( Object config , Constructor defaultType )
- :
- Ext.ComponentShorthand for Ext.ComponentMgr.create
-Creates a new Component from the specified config object using the
+}); Parameters:Returns:Object The modified object.
| Ext |
| create( Object config , Constructor defaultType )
+ :
+ Ext.ComponentShorthand for Ext.ComponentMgr.create
+Creates a new Component from the specified config object using the
config objec... Shorthand for Ext.ComponentMgr.create
Creates a new Component from the specified config object using the
config object's xtype to determine the class to instantiate. Parameters:config : ObjectA configuration object for the Component you wish to create. defaultType : ConstructorThe constructor to provide the default Component type if
-the config object does not contain a xtype . (Optional if the config contains a xtype ). Returns: | Ext |
| decode( String json , [Boolean safe ] )
- :
- ObjectShorthand for Ext.util.JSON.decode | Ext |
| destroy( Mixed arg1 , [Mixed arg2 ], [Mixed etc... ] )
- :
- voidAttempts to destroy any objects passed to it by removing all event listeners, removing them from the
+the config object does not contain a xtype . (Optional if the config contains a xtype ). Returns: | Ext |
| decode( String json , [Boolean safe ] )
+ :
+ ObjectShorthand for Ext.util.JSON.decode | Ext |
| defer( Function fn , [Object scope ], [Array args ], [Boolean/Number appendArgs ] )
+ :
+ FunctionShorthand for Ext.util.Functions.createDelegate Shorthand for Ext.util.Functions.createDelegateParameters:fn : FunctionThe function to delegate. scope : Object(optional) The scope (this reference) in which the function is executed.
+If omitted, defaults to the browser window. args : Array(optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller) appendArgs : Boolean/Number(optional) if True args are appended to call args instead of overriding,
+if a number the args are inserted at the specified position Returns: | Ext |
| destroy( Mixed arg1 , [Mixed arg2 ], [Mixed etc... ] )
+ :
+ voidAttempts to destroy any objects passed to it by removing all event listeners, removing them from the
DOM (if applicab... Attempts to destroy any objects passed to it by removing all event listeners, removing them from the
DOM (if applicable) and calling their destroy functions (if available). This method is primarily
intended for arguments of type Ext.Element and Ext.Component, but any subclass of
Ext.util.Observable can be passed in. Any number of elements and/or components can be
-passed into this function in a single call as separate arguments. Parameters:arg1 : Mixedarg2 : Mixed(optional) etc... : Mixed(optional) Returns: | Ext |
| destroyMembers( Object o , Mixed arg1 , Mixed etc... )
- :
- voidAttempts to destroy and then remove a set of named properties of the passed object. Attempts to destroy and then remove a set of named properties of the passed object. Parameters:o : ObjectThe object (most likely a Component) who's properties you wish to destroy. arg1 : MixedThe name of the property to destroy and remove from the object. etc... : MixedMore property names to destroy and remove. Returns: | Ext |
| each( Array/NodeList/Mixed array , Function fn , Object scope )
- :
- SeeIterates an array calling the supplied function. Iterates an array calling the supplied function. Parameters:array : Array/NodeList/MixedThe array to be iterated. If this
-argument is not really an array, the supplied function is called once. fn : FunctionThe function to be called with each item. If the
-supplied function returns false, iteration stops and this method returns
-the current index . This function is called with
-the following arguments:
-
-item : Mixed
-The item at the current index
-in the passed array
-index : Number
-The current index within the array
-allItems : Array
-The array passed as the first
-argument to Ext.each .
- scope : ObjectThe scope (this reference) in which the specified function is executed.
-Defaults to the item at the current index
-within the passed array . Returns: | Ext |
| encode( Mixed o )
- :
- StringShorthand for Ext.util.JSON.encode | Ext |
| escapeRe( String str )
- :
- StringEscapes the passed string for use in a regular expression Escapes the passed string for use in a regular expression | Ext |
| extend( Function subclass , Object overrides )
- :
- FunctionExtends one class to create a subclass and optionally overrides members with the passed literal. This method
-also ad... Extends one class to create a subclass and optionally overrides members with the passed literal. This method
-also adds the function "override()" to the subclass that can be used to override members of the class.
-For example, to create a subclass of Ext GridPanel:
- MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
- constructor: function(config) {
-
-// Create configuration for this Grid.
- var store = new Ext.data.Store({...});
- var colModel = new Ext.grid.ColumnModel({...});
-
-// Create a new config object containing our computed properties
-// *plus* whatever was in the config parameter.
- config = Ext.apply({
- store: store,
- colModel: colModel
- }, config);
-
- MyGridPanel.superclass.constructor.call(this, config);
-
-// Your postprocessing here
- },
-
- yourMethod: function() {
- // etc.
- }
-});
- This function also supports a 3-argument call in which the subclass's constructor is
-passed as an argument. In this form, the parameters are as follows:
-
-subclass : Function The subclass constructor.
-superclass : Function The constructor of class being extended
-overrides : Object A literal with members which are copied into the subclass's
-prototype, and are therefore shared among all instances of the new class.
- | Ext |
| flatten( Array arr )
- :
- ArrayRecursively flattens into 1-d Array. Injects Arrays inline. Recursively flattens into 1-d Array. Injects Arrays inline. Parameters:arr : ArrayThe array to flatten Returns: | Ext |
| fly( String/HTMLElement el , [String named ] )
- :
- ElementGets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to t... Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
-the dom node can be overwritten by other code. Shorthand of Ext.Element.fly
- Use this to make one-time references to DOM elements which are not going to be accessed again either by
-application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get
-will be more appropriate to take advantage of the caching provided by the Ext.Element class. | Ext |
| get( Mixed el )
- :
- ElementRetrieves Ext.Element objects.
-This method does not retrieve Components. This method
-retrieves Ext.Element objects ... Retrieves Ext.Element objects.
- This method does not retrieve Components. This method
-retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by
-its ID, use Ext.ComponentMgr.get.
- Uses simple caching to consistently return the same object. Automatically fixes if an
-object was recreated with the same id via AJAX or DOM.
-Shorthand of Ext.Element.get | Ext |
| getBody()
- :
- Ext.ElementReturns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:Returns:Ext.Element The document body
| Ext |
| getCmp( String id )
- :
- Ext.ComponentThis is shorthand reference to Ext.ComponentMgr.get.
+passed into this function in a single call as separate arguments. Parameters:arg1 : Mixedarg2 : Mixed(optional) etc... : Mixed(optional) Returns: | Ext |
| destroyMembers( Object o , Mixed arg1 , Mixed etc... )
+ :
+ voidAttempts to destroy and then remove a set of named properties of the passed object. Attempts to destroy and then remove a set of named properties of the passed object. Parameters:o : ObjectThe object (most likely a Component) who's properties you wish to destroy. arg1 : MixedThe name of the property to destroy and remove from the object. etc... : MixedMore property names to destroy and remove. Returns: | Ext |
| each( Array/NodeList/Mixed array , Function fn , Object scope )
+ :
+ SeeIterates an array calling the supplied function. Iterates an array calling the supplied function. Parameters:array : Array/NodeList/MixedThe array to be iterated. If this
+argument is not really an array, the supplied function is called once. fn : FunctionThe function to be called with each item. If the
+supplied function returns false, iteration stops and this method returns
+the current index . This function is called with
+the following arguments:
+
+item : Mixed
+The item at the current index
+in the passed array
+index : Number
+The current index within the array
+allItems : Array
+The array passed as the first
+argument to Ext.each .
+ scope : ObjectThe scope (this reference) in which the specified function is executed.
+Defaults to the item at the current index
+within the passed array . Returns: | Ext |
| encode( Mixed o )
+ :
+ StringShorthand for Ext.util.JSON.encode | Ext |
| escapeRe( String str )
+ :
+ StringEscapes the passed string for use in a regular expression Escapes the passed string for use in a regular expression | Ext |
| extend( Function superclass , Object overrides )
+ :
+ FunctionExtends one class to create a subclass and optionally overrides members with the passed literal. This method
+also add... Extends one class to create a subclass and optionally overrides members with the passed literal. This method
+also adds the function "override()" to the subclass that can be used to override members of the class.
+For example, to create a subclass of Ext GridPanel:
+ MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
+ constructor: function(config) {
+
+// Create configuration for this Grid.
+ var store = new Ext.data.Store({...});
+ var colModel = new Ext.grid.ColumnModel({...});
+
+// Create a new config object containing our computed properties
+// *plus* whatever was in the config parameter.
+ config = Ext.apply({
+ store: store,
+ colModel: colModel
+ }, config);
+
+ MyGridPanel.superclass.constructor.call(this, config);
+
+// Your postprocessing here
+ },
+
+ yourMethod: function() {
+ // etc.
+ }
+});
+ This function also supports a 3-argument call in which the subclass's constructor is
+passed as an argument. In this form, the parameters are as follows:
+
+subclass : Function The subclass constructor.
+superclass : Function The constructor of class being extended
+overrides : Object A literal with members which are copied into the subclass's
+prototype, and are therefore shared among all instances of the new class.
+ | Ext |
| flatten( Array arr )
+ :
+ ArrayRecursively flattens into 1-d Array. Injects Arrays inline. Recursively flattens into 1-d Array. Injects Arrays inline. Parameters:arr : ArrayThe array to flatten Returns: | Ext |
| fly( String/HTMLElement el , [String named ] )
+ :
+ ElementGets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to t... Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
+the dom node can be overwritten by other code. Shorthand of Ext.Element.fly
+ Use this to make one-time references to DOM elements which are not going to be accessed again either by
+application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get
+will be more appropriate to take advantage of the caching provided by the Ext.Element class. | Ext |
| get( Mixed el )
+ :
+ ElementRetrieves Ext.Element objects.
+This method does not retrieve Components. This method
+retrieves Ext.Element objects wh... Retrieves Ext.Element objects.
+ This method does not retrieve Components. This method
+retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by
+its ID, use Ext.ComponentMgr.get.
+ Uses simple caching to consistently return the same object. Automatically fixes if an
+object was recreated with the same id via AJAX or DOM.
+Shorthand of Ext.Element.get | Ext |
| getBody()
+ :
+ Ext.ElementReturns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:Returns:Ext.Element The document body
| Ext |
| getCmp( String id )
+ :
+ Ext.ComponentThis is shorthand reference to Ext.ComponentMgr.get.
Looks up an existing Component by id | Ext |
| getDoc()
- :
- Ext.ElementReturns the current HTML document object as an Ext.Element. Returns the current HTML document object as an Ext.Element. | Ext |
| getDom( Mixed el )
- :
- HTMLElementReturn the dom node for the passed String (id), dom node, or Ext.Element.
-Here are some examples:
-// gets dom node ... Return the dom node for the passed String (id), dom node, or Ext.Element.
-Here are some examples:
- // gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
- var dom = Ext.getDom(el);
- // do something with the dom node
-}
- Note: the dom node to be found actually needs to exist (be rendered, etc)
-when this method is called to be successful. | Ext |
| getScrollBarWidth( [Boolean force ] )
- :
- NumberUtility method for getting the width of the browser scrollbar. This can differ depending on
+Looks up an existing Component by id | Ext |
| getDoc()
+ :
+ Ext.ElementReturns the current HTML document object as an Ext.Element. Returns the current HTML document object as an Ext.Element. | Ext |
| getDom( Mixed el )
+ :
+ HTMLElementReturn the dom node for the passed String (id), dom node, or Ext.Element.
+Optional 'strict' flag is needed for IE sin... Return the dom node for the passed String (id), dom node, or Ext.Element.
+Optional 'strict' flag is needed for IE since it can return 'name' and
+'id' elements by using getElementById.
+Here are some examples:
+ // gets dom node based on id
+var elDom = Ext.getDom('elId');
+// gets dom node based on the dom node
+var elDom1 = Ext.getDom(elDom);
+
+// If we don't know if we are working with an
+// Ext.Element or a dom node use Ext.getDom
+function(el){
+ var dom = Ext.getDom(el);
+ // do something with the dom node
+}
+ Note: the dom node to be found actually needs to exist (be rendered, etc)
+when this method is called to be successful. | Ext |
| getHead()
+ :
+ Ext.ElementReturns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:Returns:Ext.Element The document body
| Ext |
| getScrollBarWidth( [Boolean force ] )
+ :
+ NumberUtility method for getting the width of the browser scrollbar. This can differ depending on
operating system settings... Utility method for getting the width of the browser scrollbar. This can differ depending on
-operating system settings, such as the theme or font size. | Ext |
| id( [Mixed el ], [String prefix ] )
- :
- StringGenerates unique ids. If the element already has an id, it is unchanged Generates unique ids. If the element already has an id, it is unchanged | Ext |
| invoke( Array|NodeList arr , String methodName , Anything ... )
- :
- ArrayInvokes a method on each item in an Array.
-// Example:
-Ext.invoke(Ext.query("p"), "getAttribute", "id");
+operating system settings, such as the theme or font size. | Ext |
| id( [Mixed el ], [String prefix ] )
+ :
+ StringGenerates unique ids. If the element already has an id, it is unchanged Generates unique ids. If the element already has an id, it is unchanged | Ext |
| invoke( Array|NodeList arr , String methodName , ...* args )
+ :
+ ArrayInvokes a method on each item in an Array.
+// Example:
+Ext.invoke(Ext.query("p"), "getAttribute", "id");
// [el1.getA... Invokes a method on each item in an Array.
// Example:
Ext.invoke(Ext.query("p"), "getAttribute", "id");
-// [el1.getAttribute("id"), el2.getAttribute("id"), ..., elN.getAttribute("id")]
Parameters:arr : Array|NodeListThe Array of items to invoke the method on. methodName : StringThe method name to invoke. ... : AnythingArguments to send into the method invocation. Returns: | Ext |
| isArray( Mixed value )
- :
- BooleanReturns true if the passed value is a JavaScript array, otherwise false. Returns true if the passed value is a JavaScript array, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isBoolean( Mixed value )
- :
- BooleanReturns true if the passed value is a boolean. Returns true if the passed value is a boolean. Parameters:value : MixedThe value to test Returns: | Ext |
| isDate( Object object )
- :
- BooleanReturns true if the passed object is a JavaScript date object, otherwise false. Returns true if the passed object is a JavaScript date object, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext |
| isDefined( Mixed value )
- :
- BooleanReturns true if the passed value is not undefined. Returns true if the passed value is not undefined. Parameters:value : MixedThe value to test Returns: | Ext |
| isEmpty( Mixed value , [Boolean allowBlank ] )
- :
- BooleanReturns true if the passed value is empty.
-The value is deemed to be empty if it is<div class="mdetail-params">
-nul... Returns true if the passed value is empty.
- The value is deemed to be empty if it is
-- null
-- undefined
-- an empty array
-- a zero length string (Unless the allowBlank parameter is true)
- | Ext |
| isFunction( Mixed value )
- :
- BooleanReturns true if the passed value is a JavaScript Function, otherwise false. Returns true if the passed value is a JavaScript Function, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isNumber( Mixed value )
- :
- BooleanReturns true if the passed value is a number. Returns false for non-finite numbers. Returns true if the passed value is a number. Returns false for non-finite numbers. Parameters:value : MixedThe value to test Returns: | Ext |
| isObject( Mixed value )
- :
- BooleanReturns true if the passed value is a JavaScript Object, otherwise false. Returns true if the passed value is a JavaScript Object, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isPrimitive( Mixed value )
- :
- BooleanReturns true if the passed value is a JavaScript 'primitive', a string, number or boolean. Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. Parameters:value : MixedThe value to test Returns: | Ext |
| isString( Mixed value )
- :
- BooleanReturns true if the passed value is a string. Returns true if the passed value is a string. Parameters:value : MixedThe value to test Returns: | Ext |
| iterate( Object/Array object , Function fn , Object scope )
- :
- voidIterates either the elements in an array, or each of the properties in an object.
-Note: If you are only iterating ar... Iterates either the elements in an array, or each of the properties in an object.
- Note: If you are only iterating arrays, it is better to call each. | Ext |
| max( Array|NodeList arr , [Function comp ] )
- :
+// [el1.getAttribute("id"), el2.getAttribute("id"), ..., elN.getAttribute("id")]Parameters:arr : Array|NodeListThe Array of items to invoke the method on. methodName : StringThe method name to invoke. args : ...*Arguments to send into the method invocation. Returns: | Ext |
| isArray( Mixed value )
+ :
+ BooleanReturns true if the passed value is a JavaScript array, otherwise false. Returns true if the passed value is a JavaScript array, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isBoolean( Mixed value )
+ :
+ BooleanReturns true if the passed value is a boolean. Returns true if the passed value is a boolean. Parameters:value : MixedThe value to test Returns: | Ext |
| isDate( Object object )
+ :
+ BooleanReturns true if the passed object is a JavaScript date object, otherwise false. Returns true if the passed object is a JavaScript date object, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext |
| isDefined( Mixed value )
+ :
+ BooleanReturns true if the passed value is not undefined. Returns true if the passed value is not undefined. Parameters:value : MixedThe value to test Returns: | Ext |
| isElement( Mixed value )
+ :
+ BooleanReturns true if the passed value is an HTMLElement Returns true if the passed value is an HTMLElement Parameters:value : MixedThe value to test Returns: | Ext |
| isEmpty( Mixed value , [Boolean allowBlank ] )
+ :
+ BooleanReturns true if the passed value is empty.
+The value is deemed to be empty if it is<div class="mdetail-params">
+null
+... Returns true if the passed value is empty.
+ The value is deemed to be empty if it is
+- null
+- undefined
+- an empty array
+- a zero length string (Unless the allowBlank parameter is true)
+ | Ext |
| isFunction( Mixed value )
+ :
+ BooleanReturns true if the passed value is a JavaScript Function, otherwise false. Returns true if the passed value is a JavaScript Function, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isNumber( Mixed value )
+ :
+ BooleanReturns true if the passed value is a number. Returns false for non-finite numbers. Returns true if the passed value is a number. Returns false for non-finite numbers. Parameters:value : MixedThe value to test Returns: | Ext |
| isObject( Mixed value )
+ :
+ BooleanReturns true if the passed value is a JavaScript Object, otherwise false. Returns true if the passed value is a JavaScript Object, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext |
| isPrimitive( Mixed value )
+ :
+ BooleanReturns true if the passed value is a JavaScript 'primitive', a string, number or boolean. Returns true if the passed value is a JavaScript 'primitive', a string, number or boolean. Parameters:value : MixedThe value to test Returns: | Ext |
| isString( Mixed value )
+ :
+ BooleanReturns true if the passed value is a string. Returns true if the passed value is a string. Parameters:value : MixedThe value to test Returns: | Ext |
| iterate( Object/Array object , Function fn , Object scope )
+ :
+ voidIterates either the elements in an array, or each of the properties in an object.
+Note: If you are only iterating arr... Iterates either the elements in an array, or each of the properties in an object.
+ Note: If you are only iterating arrays, it is better to call each. | Ext |
| max( Array|NodeList arr , [Function comp ] )
+ :
ObjectReturns the maximum value in the Array Returns the maximum value in the Array Parameters:arr : Array|NodeListThe Array from which to select the maximum value. comp : Function(optional) a function to perform the comparision which determines maximization.
-If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 Returns: | Ext |
| mean( Array arr )
- :
- NumberCalculates the mean of the Array Calculates the mean of the Array | Ext |
| min( Array|NodeList arr , [Function comp ] )
- :
+If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1Returns: | Ext |
| mean( Array arr )
+ :
+ NumberCalculates the mean of the Array Calculates the mean of the Array | Ext |
| min( Array|NodeList arr , [Function comp ] )
+ :
ObjectReturns the minimum value in the Array. Returns the minimum value in the Array. Parameters:arr : Array|NodeListThe Array from which to select the minimum value. comp : Function(optional) a function to perform the comparision which determines minimization.
-If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 Returns: | Ext |
| namespace( String namespace1 , String namespace2 , String etc )
- :
- ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last nod... Creates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last node of a namespace implicitly creates all other nodes. Usage:
- Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns: | Ext |
| ns( String namespace1 , String namespace2 , String etc )
- :
- ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last nod... Creates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last node of a namespace implicitly creates all other nodes. Usage:
- Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
-Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns: | Ext |
| num( Mixed value , Number defaultValue )
- :
- NumberUtility method for validating that a value is numeric, returning the specified default value if it is not. Utility method for validating that a value is numeric, returning the specified default value if it is not. Parameters:value : MixedShould be a number, but any type will be handled appropriately defaultValue : NumberThe value to return if the original value is non-numeric Returns: | Ext |
| onReady( Function fn , [Object scope ], [boolean options ] )
- :
+If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1Returns: | Ext |
| namespace( String namespace1 , String namespace2 , String etc )
+ :
+ ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node... Creates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node of a namespace implicitly creates all other nodes. Usage:
+ Ext.namespace('Company', 'Company.data');
+Ext.namespace('Company.data'); // equivalent and preferable to above syntax
+Company.Widget = function() { ... }
+Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns: | Ext |
| ns( String namespace1 , String namespace2 , String etc )
+ :
+ ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node... Creates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node of a namespace implicitly creates all other nodes. Usage:
+ Ext.namespace('Company', 'Company.data');
+Ext.namespace('Company.data'); // equivalent and preferable to above syntax
+Company.Widget = function() { ... }
+Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns: | Ext |
| num( Mixed value , Number defaultValue )
+ :
+ NumberUtility method for validating that a value is numeric, returning the specified default value if it is not. Utility method for validating that a value is numeric, returning the specified default value if it is not. Parameters:value : MixedShould be a number, but any type will be handled appropriately defaultValue : NumberThe value to return if the original value is non-numeric Returns: | Ext |
| onReady( Function fn , [Object scope ], [boolean options ] )
+ :
voidAdds a listener to be notified when the document is ready (before onload and before images are loaded). Shorthand of ... | Ext |
| override( Object origclass , Object overrides )
- :
- voidAdds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
... Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
-Usage: Ext.override(MyClass, {
- newMethod1: function(){
- // etc.
- },
- newMethod2: function(foo){
- // etc.
- }
-});
| Ext |
| partition( Array|NodeList arr , [Function truth ] )
- :
- ArrayPartitions the set into two sets: a true set and a false set.
-Example:
-Example2:
-// Example 1:
-Ext.partition([true,... Partitions the set into two sets: a true set and a false set.
-Example:
-Example2:
+{single: true} be used so that the handler is removed on first invocation. Returns: | Ext |
| override( Object origclass , Object overrides )
+ :
+ voidAdds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
+... Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
+Usage: Ext.override(MyClass, {
+ newMethod1: function(){
+ // etc.
+ },
+ newMethod2: function(foo){
+ // etc.
+ }
+});
| Ext |
| partition( Array|NodeList arr , [Function truth ] )
+ :
+ ArrayPartitions the set into two sets: a true set and a false set.
+Example:
+Example2:
+// Example 1:
+Ext.partition([true, f... Partitions the set into two sets: a true set and a false set.
+Example:
+Example2:
// Example 1:
Ext.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]
@@ -291,37 +305,41 @@ Ext.partition(
);
// true are those paragraph elements with a className of "class1",
// false set are those that do not have that className.
| Ext |
| pluck( Array|NodeList arr , String prop )
- :
- ArrayPlucks the value of a property from each item in the Array
-// Example:
+itself must be able to be evaluated for its truthfulness. Returns: | Ext |
| pluck( Array|NodeList arr , String prop )
+ :
+ ArrayPlucks the value of a property from each item in the Array
+// Example:
Ext.pluck(Ext.query("p"), "className"); // [el... Plucks the value of a property from each item in the Array
// Example:
-Ext.pluck(Ext.query("p"), "className"); // [el1.className, el2.className, ..., elN.className]
| Ext |
| preg( String ptype , Constructor cls )
- :
+Ext.pluck(Ext.query("p"), "className"); // [el1.className, el2.className, ..., elN.className] | Ext |
| preg( String ptype , Constructor cls )
+ :
voidShorthand for Ext.ComponentMgr.registerPlugin | Ext |
| query( String path , [Node root ] )
- :
- ArraySelects an array of DOM nodes by CSS/XPath selector. Shorthand of Ext.DomQuery.select | Ext |
| reg( String xtype , Constructor cls )
- :
+may be looked up.cls : ConstructorThe new Plugin class. Returns: | Ext |
| query( String path , [Node root ] )
+ :
+ ArraySelects an array of DOM nodes by CSS/XPath selector. Shorthand of Ext.DomQuery.select | Ext |
| reg( String xtype , Constructor cls )
+ :
voidShorthand for Ext.ComponentMgr.registerType | Ext |
| removeNode( HTMLElement node )
- :
- voidRemoves a DOM node from the document. The body node will be ignored if passed in. Removes a DOM node from the document. The body node will be ignored if passed in. Parameters:node : HTMLElementThe node to remove Returns: | Ext |
| select( String/Array selector , [Boolean unique ], [HTMLElement/String root ] )
- :
- CompositeElementLite/CompositeElementSelects elements based on the passed CSS selector to enable Element methods
-to be applied to many related elements i... Selects elements based on the passed CSS selector to enable Element methods
-to be applied to many related elements in one statement through the returned CompositeElement or
- CompositeElementLite object. Parameters:selector : String/ArrayThe CSS selector or an array of elements unique : Boolean(optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object) root : HTMLElement/String(optional) The root element of the query or id of the root Returns:CompositeElementLite/CompositeElement
| Ext |
| sum( Array arr )
- :
- NumberCalculates the sum of the Array Calculates the sum of the Array | Ext |
| toArray( Iterable the )
- :
- (Array)Converts any iterable (numeric indices and a length property) into a true array
-Don't use this on strings. IE doesn'... Converts any iterable (numeric indices and a length property) into a true array
-Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
-For strings, use this instead: "abc".match(/./g) => [a,b,c]; | Ext |
| type( Mixed object )
- :
- StringReturns the type of object that is passed in. If the object passed in is null or undefined it
+may be looked up. cls : ConstructorThe new Component class. Returns: | Ext |
| removeNode( HTMLElement node )
+ :
+ voidRemoves this element from the document, removes all DOM event listeners, and deletes the cache reference.
+All DOM eve... Removes this element from the document, removes all DOM event listeners, and deletes the cache reference.
+All DOM event listeners are removed from this element. If Ext.enableNestedListenerRemoval is
+true , then DOM event listeners are also removed from all child nodes. The body node
+will be ignored if passed in. Parameters:node : HTMLElementThe node to remove Returns: | Ext |
| select( String/Array selector , [Boolean unique ], [HTMLElement/String root ] )
+ :
+ CompositeElementLite/CompositeElementSelects elements based on the passed CSS selector to enable Element methods
+to be applied to many related elements in... Selects elements based on the passed CSS selector to enable Element methods
+to be applied to many related elements in one statement through the returned CompositeElement or
+ CompositeElementLite object. Parameters:selector : String/ArrayThe CSS selector or an array of elements unique : Boolean(optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object) root : HTMLElement/String(optional) The root element of the query or id of the root Returns:CompositeElementLite/CompositeElement
| Ext |
| sum( Array arr )
+ :
+ NumberCalculates the sum of the Array Calculates the sum of the Array | Ext |
| toArray( Iterable the )
+ :
+ (Array)Converts any iterable (numeric indices and a length property) into a true array
+Don't use this on strings. IE doesn't... Converts any iterable (numeric indices and a length property) into a true array
+Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
+For strings, use this instead: "abc".match(/./g) => [a,b,c]; | Ext |
| type( Mixed object )
+ :
+ StringReturns the type of object that is passed in. If the object passed in is null or undefined it
return false otherwise ... Returns the type of object that is passed in. If the object passed in is null or undefined it
return false otherwise it returns one of the following values:
- string: If the object passed is a string
@@ -336,33 +354,33 @@ return false otherwise it returns one of the following values: | Ext |
| unique( Array arr )
- :
- ArrayCreates a copy of the passed Array, filtered to contain only unique values. Creates a copy of the passed Array, filtered to contain only unique values. Parameters:arr : ArrayThe Array to filter Returns: | Ext |
| urlAppend( String url , String s )
- :
- (String)Appends content to the query string of a URL, handling logic for whether to place
-a question mark or ampersand. Appends content to the query string of a URL, handling logic for whether to place
-a question mark or ampersand. Parameters:Returns:(String) The resulting URL
| Ext |
| urlDecode( String string , [Boolean overwrite ] )
- :
- ObjectTakes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", b... Takes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
-Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
Parameters:Returns:Object A literal with members
| Ext |
| urlEncode( Object o , [String pre ] )
- :
- StringTakes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". ... Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. | Ext |
| value( Mixed value , Mixed defaultValue , [Boolean allowBlank ] )
- :
- MixedUtility method for returning a default value if the passed value is empty.
+ | Ext |
| unique( Array arr )
+ :
+ ArrayCreates a copy of the passed Array, filtered to contain only unique values. Creates a copy of the passed Array, filtered to contain only unique values. Parameters:arr : ArrayThe Array to filter Returns: | Ext |
| urlAppend( String url , String s )
+ :
+ (String)Appends content to the query string of a URL, handling logic for whether to place
+a question mark or ampersand. Appends content to the query string of a URL, handling logic for whether to place
+a question mark or ampersand. Parameters:Returns:(String) The resulting URL
| Ext |
| urlDecode( String string , [Boolean overwrite ] )
+ :
+ ObjectTakes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", b... Takes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
+Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
Parameters:Returns:Object A literal with members
| Ext |
| urlEncode( Object o , [String pre ] )
+ :
+ StringTakes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". ... Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. | Ext |
| value( Mixed value , Mixed defaultValue , [Boolean allowBlank ] )
+ :
+ MixedUtility method for returning a default value if the passed value is empty.
The value is deemed to be empty if it is<d... Utility method for returning a default value if the passed value is empty.
The value is deemed to be empty if it is
- null
- undefined
- an empty array
- a zero length string (Unless the allowBlank parameter is true)
- | Ext |
| zip( Arrays|NodeLists arr , [Function zipper ] )
- :
- ArrayZips N sets together.
-// Example 1:
-Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
-// Example 2:
-Ext.zip(
+ | Ext |
| zip( Arrays|NodeLists arr , [Function zipper ] )
+ :
+ ArrayZips N sets together.
+// Example 1:
+Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
+// Example 2:
+Ext.zip(
[ "+"... Zips N sets together.
// Example 1:
Ext.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]
|