Package: | Global |
Defined In: | Ext.js |
Class: | Ext |
Extends: | Object |
Method | Defined By | |
---|---|---|
addBehaviors( Object obj ) : void Applies event listeners to elements by selectors when the document is ready.
The event name is specified with an @ su...
Applies event listeners to elements by selectors when the document is ready.
The event name is specified with an @ suffix.
Parameters:
|
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:
|
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:
|
Ext | |
decode( String json ) : Object Shorthand for Ext.util.JSON.decode
Shorthand for Ext.util.JSON.decode
Parameters:
|
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
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:
|
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:
|
Ext | |
encode( Mixed o ) : String Shorthand for Ext.util.JSON.encode
Shorthand for Ext.util.JSON.encode
Parameters:
|
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:
|
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:
For example, to create a subclass of the Ext GridPanel:
Parameters:
|
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:
|
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:
|
Ext | |
getBody() : Ext.Element Returns the current document body as an Ext.Element.
Returns the current document body as an Ext.Element.
Parameters:
|
Ext | |
getCmp( String id ) : Ext.Component Shorthand for Ext.ComponentMgr.get
Shorthand for Ext.ComponentMgr.get
Parameters:
|
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:
|
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:
|
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:
|
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:
|
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:
|
Ext | |
isEmpty( Mixed value , [Boolean allowBlank ] ) : Boolean Returns true if the passed value is null, undefined or an empty string (optional).
Returns true if the passed value is null, undefined or an empty string (optional).
Parameters:
|
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:
Parameters:
|
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:
|
Ext | |
onReady( Function fn , Object scope , boolean override ) : 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:
|
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.
Usage:
Parameters:
|
Ext | |
query( String path , [Node root ] ) : Array Selects an array of DOM nodes by CSS/XPath selector. Shorthand of Ext.DomQuery.select
Selects an array of DOM nodes by CSS/XPath selector. Shorthand of Ext.DomQuery.select
Parameters:
|
Ext | |
reg( String xtype , Constructor cls ) : void Shorthand for Ext.ComponentMgr.registerType
Shorthand for Ext.ComponentMgr.registerType
Parameters:
|
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:
|
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:
|
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:
Parameters:
|
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", true); would return {foo: 1, bar: [2, 3, 4]}.
Parameters:
|
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:
|
Ext |