|
| addBehaviors( Object obj )
:
@@ -21,7 +24,7 @@ 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
@@ -32,7 +35,7 @@ The event name is specified with an @ suffix.
:
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 )
+ 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.
@@ -42,10 +45,21 @@ 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 |
| decode( String json , [Boolean safe ] )
+});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 |
| defer( Function fn , [Object scope ], [Array args ], [Boolean/Number appendArgs ] )
:
- ObjectShorthand for Ext.util.JSON.decode | Ext |
| destroy( Mixed arg1 , [Mixed arg2 ], [Mixed etc... ] )
+ 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
@@ -56,65 +70,87 @@ passed into this function in a single call as separate arguments. Attempts 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 )
:
- voidIterates an array calling the passed function with each item, stopping if your function returns false. If the
-passed... Iterates an array calling the passed function with each item, stopping if your function returns false. If the
-passed array is not really an array, your function is called once with it.
-The supplied function is called with (Object item, Number index, Array allItems). Parameters:array : Array/NodeList/Mixedfn : Functionscope : Object Returns: | Ext |
| encode( Mixed o )
+ 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 , Function superclass , [Object overrides ] )
- :
- FunctionExtends one class with another class and optionally overrides members with the passed literal. This class
-also adds ... Extends one class with another class and optionally overrides members with the passed literal. This class
-also adds the function "override()" to the class that can be used to override
-members on an instance.
-
-This function also supports a 2-argument call in which the subclass's constructor is
-not passed as an argument. In this form, the parameters are as follows:
-
-superclass
-The class being extended
-overrides
-A literal with members which are copied into the subclass's
-prototype, and are therefore shared among all instances of the new class.
-This may contain a special member named constructor. This is used
-to define the constructor of the new class, and is returned. If this property is
-not specified, a constructor is generated and returned which just calls the
-superclass's constructor passing on its parameters.
-
-For example, to create a subclass of the Ext GridPanel:
- MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
- constructor: function(config) {
- // Your preprocessing here
- MyGridPanel.superclass.constructor.apply(this, arguments);
- // Your postprocessing here
- },
-
- yourMethod: function() {
- // etc.
- }
-});
- Parameters:subclass : FunctionThe class inheriting the functionality superclass : FunctionThe class being extended overrides : Object(optional) A literal with members which are copied into the subclass's
-prototype, and are therefore shared between all instances of the new class. Returns: | Ext |
| flatten( Array arr )
+ 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. Parameters:el : String/HTMLElementThe dom node or id named : String(optional) Allows for creation of named reusable flyweights to prevent conflicts
+ Element Gets 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.
+ Element Retrieves 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 )
@@ -126,25 +162,32 @@ Class was found. | Ext
:
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 |
| 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 ... )
+ 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 , ...* args )
:
ArrayInvokes a method on each item in an Array.
// Example:
@@ -152,52 +195,55 @@ 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( Object object )
+// [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 object is a JavaScript array, otherwise false. Returns true if the passed object is a JavaScript array, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext |
| isBoolean( Object v )
+ 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 object is a boolean. Returns true if the passed object is a boolean. Parameters:v : ObjectThe object to test Returns: | Ext |
| isDate( Object object )
+ 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( Object v )
+ 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 object is not undefined. Returns true if the passed object is not undefined. Parameters:v : ObjectThe object to test Returns: | Ext |
| isEmpty( Mixed value , [Boolean allowBlank ] )
+ 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 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( Object object )
+ 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 object is a JavaScript Function, otherwise false. Returns true if the passed object is a JavaScript Function, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext |
| isNumber( Object v )
+ 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 object is a number. Returns false for non-finite numbers. Returns true if the passed object is a number. Returns false for non-finite numbers. Parameters:v : ObjectThe object to test Returns: | Ext |
| isObject( Object object )
+ 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 object is a JavaScript Object, otherwise false. Returns true if the passed object is a JavaScript Object, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext |
| isPrimitive( 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 object is a JavaScript 'primitive', a string, number or boolean. Returns true if the passed object is a JavaScript 'primitive', a string, number or boolean. Parameters:value : MixedThe value to test Returns: | Ext |
| isString( Object v )
+ 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 object is a string. Returns true if the passed object is a string. Parameters:v : ObjectThe object to test Returns: | Ext |
| iterate( Object/Array object , Function fn , Object scope )
+ 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. Parameters:object : Object/ArrayThe object or array to be iterated fn : FunctionThe function to be called for each iteration.
-The iteration will stop if the supplied function returns false, or
-all array elements / object properties have been covered. The signature
-varies depending on the type of object being interated:
-
-- Arrays : (Object item, Number index, Array allItems)
-
-When iterating an array, the supplied function is called with each item.
-- Objects : (String key, Object value)
-
-When iterating an object, the supplied function is called with each key-value pair in
-the object.
- scope : ObjectThe scope to call the supplied function with, defaults to
-the specified object Returns: | Ext |
| max( Array|NodeList arr , [Function comp ] )
+ 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 )
@@ -207,36 +253,46 @@ If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1Returns 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 )
:
- voidCreates 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 ] )
- :
- voidFires when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocum... | 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.
- }
-});
Parameters:origclass : ObjectThe class to override overrides : ObjectThe list of functions to add to origClass. This should be specified as an object literal
+ Object Creates 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:
+Example2:
// Example 1:
-Ext.partition([true,... Partitions the set into two sets: a true set and a false set.
-Example:
-Example2:
+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]]
@@ -265,18 +321,22 @@ may be looked up.
cls : ConstructorShorthand 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 ] )
+ 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 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/CompositeElement Selects 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'... 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.
+ (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
@@ -296,13 +356,13 @@ 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 )
+ 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, which handles logic for whether to place
-a question mark or ampersand. Appends content to the query string of a URL, which handles logic for whether to place
-a question mark or ampersand. Parameters:url : StringThe url to append to. Returns:(String) The appended string
| Ext |
| urlDecode( String string , [Boolean overwrite ] )
+ (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"}
+ 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 ] )
|