|
| 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({
- // add a listener for click on all anchors in element with id foo
- '#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
- }
-});
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- apply( Object obj , Object config , Object defaults ) : Object
-
-Copies 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 ) : Object
- Copies 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.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- decode( String json ) : Object
-
-
- Shorthand for Ext.util.JSON.decode
- Parameters:
- json : StringThe JSON string
- Returns:
-
- Object The resulting object
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- destroy( Mixed arg1 , [Mixed arg2 ], [Mixed etc... ] ) : void
- Attempts 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
+ // add a listener for click on all anchors in element with id foo
+ '#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.
+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() {
+ this.autoEl = { tag: 'img' };
+ 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
+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
+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 |
-
-
- |
-
-
- each( Array/NodeList/Mixed array , Function fn , Object scope ) : void
- Iterates 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 ) : String
-
-
- Shorthand for Ext.util.JSON.encode
- Parameters:
- o : MixedThe variable to encode
- Returns:
-
- String The JSON string
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- escapeRe( String str ) : String
- Escapes the passed string for use in a regular expression
-
- Escapes the passed string for use in a regular expression
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- extend( Function subclass , Function superclass , [Object overrides ] ) : Function
- Extends one class with another class and optionally overrides members with the passed literal. This class
-also adds t...
-
- 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:
+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. | 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.
+
-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
- },
+superclass's constructor passing on its parameters.
+It is essential that you call the superclass constructor in any provided constructor. See example code.
Returns: | 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.
+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);
- 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 |
-
-
- |
-
-
- fly( String/HTMLElement el , [String named ] ) : Element
- <static> Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a...
-
- <static> 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
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- get( Mixed el ) : Element
- Static method to retrieve Element objects. Uses simple caching to consistently return the same object.
-Automatically ...
-
- Static method to retrieve Element objects. 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
- Parameters:
-
- Returns:
-
- Element The Element object
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- getBody() : Ext.Element
-
-
- Returns the current document body as an Ext.Element.
- Parameters:
-
- Returns:
-
- Ext.Element The document body
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- getCmp( String id ) : Ext.Component
- |
- Ext |
-
-
- |
-
-
- getDoc() : Ext.Element
- Returns the current HTML document object as an Ext.Element.
-
- Returns the current HTML document object as an Ext.Element.
- Parameters:
-
- Returns:
-
- Ext.Element The document
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- getDom( Mixed el ) : HTMLElement
- Return the dom node for the passed string (id), dom node, or Ext.Element
-
- Return the dom node for the passed string (id), dom node, or Ext.Element
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- id( [Mixed el ], [String prefix ] ) : String
- Generates 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
- Parameters:
-
- Returns:
-
- String The generated Id.
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- isArray( Object The ) : Boolean
- Returns true if the passed object is a JavaScript array, otherwise false.
-
- Returns true if the passed object is a JavaScript array, otherwise false.
- Parameters:
- The : Objectobject to test
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- isDate( Object The ) : Boolean
- Returns 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:
- The : Objectobject to test
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- isEmpty( Mixed value , [Boolean allowBlank ] ) : Boolean
- Returns true if the passed value is null, undefined or an empty string.
-
- Returns true if the passed value is null, undefined or an empty string.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- namespace( String namespace1 , String namespace2 , String etc ) : void
- Creates namespaces to be used for scoping variables and classes so that they are not global. Usage:
-Ext.namespace('C...
-
- Creates namespaces to be used for scoping variables and classes so that they are not global. Usage:
+ // 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
+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");
+// [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 |
| 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 ] )
+ :
+ 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 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 ) : Number
- Utility 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 ] ) : void
- Fires when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocum...
-
- Fires when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocumentReady.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- override( Object origclass , Object overrides ) : void
- Adds 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.
+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.
@@ -805,111 +274,65 @@ Usage:Ext.override(MyClass, {
newMethod2: function(foo){
// etc.
}
-});
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- query( String path , [Node root ] ) : Array
-
-
- Selects an array of DOM nodes by CSS/XPath selector. Shorthand of Ext.DomQuery.select
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- reg( String xtype , Constructor cls ) : void
- |
- Ext |
-
-
- |
-
-
- removeNode( HTMLElement node ) : void
- Removes 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/CompositeElement
- Selects elements based on the passed CSS selector to enable working on them as 1.
-
- Selects elements based on the passed CSS selector to enable working on them as 1.
- 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 |
-
-
- |
-
-
- type( Mixed object ) : String
- Returns 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: | 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:
+ // Example 1:
+Ext.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]
+
+// Example 2:
+Ext.partition(
+ Ext.query("p"),
+ function(val){
+ return val.className == "class1"
+ }
+);
+// 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:
+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 )
+ :
+ 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 )
+ :
+ voidShorthand for Ext.ComponentMgr.registerType | 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 , [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: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
- number: If the object passed is a number
- boolean: If the object passed is a boolean value
@@ -921,83 +344,43 @@ return false otherwise it returns one of the following values:
- element: If the object passed is a DOM Element
- nodelist: If the object passed is a DOM NodeList
- textnode: If the object passed is a DOM text node and contains something other than whitespace
-- whitespace: If the object passed is a DOM text node and contains only whitespace
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- urlDecode( String string , [Boolean overwrite ] ) : Object
- Takes an encoded URL and and converts it to an object. e.g. Ext.urlDecode("foo=1&bar=2"); would return {foo: "1", bar...
-
- Takes an encoded URL and and converts it to an object. e.g. Ext.urlDecode("foo=1&bar=2"); would return {foo: "1", bar: "2"}
-or Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); would return {foo: "1", bar: ["2", "3", "4"]}.
- Parameters:
-
- Returns:
-
- Object A literal with members
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- urlEncode( Object o ) : String
- Takes 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.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-
- |
-
-
- value( Mixed value , Mixed defaultValue , [Boolean allowBlank ] ) : Mixed
- Utility method for validating that a value is non-empty (i.e. i) not null, ii) not undefined, and iii) not an empty s...
-
- Utility method for validating that a value is non-empty (i.e. i) not null, ii) not undefined, and iii) not an empty string),
-returning the specified default value if it is.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Ext |
-
-