| Package: | Global |
| Defined In: | Ext.js |
| Class: | Ext |
| Extends: | Object |
| Property | Defined By | |
|---|---|---|
| enableFx : Boolean True if the Ext.Fx Class is available | Ext | |
| enableGarbageCollector : Boolean True to automatically uncache orphaned Ext.Elements periodically (defaults to true) | Ext | |
| enableListenerCollection : Boolean True to automatically purge event listeners after uncaching an element (defaults to false).
Note: this only happens i... True to automatically purge event listeners after uncaching an element (defaults to false).
Note: this only happens if enableGarbageCollector is true. | Ext | |
| isAir : Boolean True if the detected platform is Adobe Air. | Ext | |
| isBorderBox : Boolean True if the detected browser is Internet Explorer running in non-strict mode. | Ext | |
| isChrome : Boolean True if the detected browser is Chrome. | Ext | |
| isGecko : Boolean True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). | Ext | |
| isGecko2 : Boolean True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). | Ext | |
| isGecko3 : Boolean True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). | Ext | |
| isIE : Boolean True if the detected browser is Internet Explorer. | Ext | |
| isIE6 : Boolean True if the detected browser is Internet Explorer 6.x. | Ext | |
| isIE7 : Boolean True if the detected browser is Internet Explorer 7.x. | Ext | |
| isIE8 : Boolean True if the detected browser is Internet Explorer 8.x. | Ext | |
| isLinux : Boolean True if the detected platform is Linux. | Ext | |
| isMac : Boolean True if the detected platform is Mac OS. | Ext | |
| isOpera : Boolean True if the detected browser is Opera. | Ext | |
| isReady : Boolean True when the document is fully initialized and ready for action | Ext | |
| isSafari : Boolean True if the detected browser is Safari. | Ext | |
| isSafari2 : Boolean True if the detected browser is Safari 2.x. | Ext | |
| isSafari3 : Boolean True if the detected browser is Safari 3.x. | Ext | |
| isSafari4 : Boolean True if the detected browser is Safari 4.x. | Ext | |
| isSecure : Boolean True if the page is running over SSL | Ext | |
| isStrict : Boolean True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode | Ext | |
| isWebKit : Boolean True if the detected browser uses Webkit. | Ext | |
| isWindows : Boolean True if the detected platform is Windows. | Ext | |
| Method | Defined By | |
|---|---|---|
apply( Object obj, Object config, Object defaults )
:
ObjectCopies all the properties of config to obj. Copies all the properties of config to obj. Parameters:
| 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. Parameters:
| Ext | |
decode( String json, [Boolean safe] )
:
ObjectShorthand for Ext.util.JSON.decode Shorthand for Ext.util.JSON.decode Parameters:
| 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:
| Ext | |
encode( Mixed o )
:
StringShorthand for Ext.util.JSON.encode Shorthand for Ext.util.JSON.encode Parameters:
| 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 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] )
:
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:
| 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.getParameters:
| Ext | |
| getBody()
:
Ext.Element Returns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:
| Ext | |
getDom( Mixed el )
:
HTMLElementReturn the dom node for the passed string (id), dom node, or Ext.Element.
Note: the dom node to be found actually nee... Return the dom node for the passed string (id), dom node, or Ext.Element.
Note: the dom node to be found actually needs to exist (be rendered, etc)
when this method is called to be successful. Parameters:
| 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 Parameters:
| Ext | |
isArray( Object object )
:
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:
| 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
Parameters:
| Ext | |
isFunction( Object object )
:
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:
| Ext | |
isObject( Object object )
:
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:
| 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:
| 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 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:
Parameters:
| 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... 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 )
:
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: Parameters:
| Ext | |
query( String path, [Node root] )
:
ArraySelects 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 | |
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:
| 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]; Parameters:
| 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: Parameters:
| Ext | |
urlEncode( Object o )
:
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. Parameters:
| Ext | |