Package: | Global |
Defined In: | Ext.js |
Class: | Ext |
Extends: | Object |
Property | Defined By | |
---|---|---|
: Object Removes a DOM node from the document. | Ext | |
BLANK_IMAGE_URL : String URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
In older versions o... URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server.
For other browsers it uses an inline data URL. | Ext | |
SSL_SECURE_URL : String URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
the IE insecure content... URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). | Ext | |
USE_NATIVE_JSON : Boolean Indicates whether to use native browser parsing for JSON methods.
This option is ignored if the browser does not supp... Indicates whether to use native browser parsing for JSON methods.
This option is ignored if the browser does not support native JSON methods.
Note: Native JSON methods will not work with objects that have functions.
Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) | Ext | |
emptyFn : Function A reusable empty function | Ext | |
enableForcedBoxModel : Boolean HIGHLY EXPERIMENTAL
True to force css based border-box model override and turning off javascript based adjustments. T... HIGHLY EXPERIMENTAL
True to force css based border-box model override and turning off javascript based adjustments. This is a
runtime configuration and must be set before onReady. | Ext | |
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 during garbageCollection (defaults to false). | Ext | |
enableNestedListenerRemoval : Boolean EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
Currently not optimized... EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
Currently not optimized for performance. | 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 | |
useShims : Boolean By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
you may wa... By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
you may want to set this to true. | Ext | |
ux : Object Namespace alloted for extensions to the framework. | Ext | |
version : String The version of the framework | Ext |
Method | Defined By | |
---|---|---|
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.
Parameters:
| 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:
| 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 | |
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. Parameters:
| 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:
Parameters:
| 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:
| Ext | |
decode( String json , [Boolean safe ] )
:
ObjectShorthand for Ext.util.JSON.decode Shorthand for Ext.util.JSON.decode Parameters:
| Ext | |
defer( Function fn , [Object scope ], [Array args ], [Boolean/Number appendArgs ] )
:
FunctionShorthand for Ext.util.Functions.createDelegate Shorthand for Ext.util.Functions.createDelegate Parameters:
| 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:
| 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:
| 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:
| Ext | |
encode( Mixed o )
:
StringShorthand for Ext.util.JSON.encode Shorthand for Ext.util.JSON.encode Parameters:
| Ext | |
escapeRe( String str )
:
StringEscapes the passed string for use in a regular expression Escapes the passed string for use in a regular expression Parameters:
| 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:
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:
Parameters:
| Ext | |
flatten( Array arr )
:
ArrayRecursively flattens into 1-d Array. Injects Arrays inline. Recursively flattens into 1-d Array. Injects Arrays inline. 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 | |
getCmp( String id )
:
Ext.ComponentThis is shorthand reference to Ext.ComponentMgr.get.
Looks up an existing Component by id This is shorthand reference to Ext.ComponentMgr.get.
Looks up an existing Component by id 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 )
:
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:
Note: the dom node to be found actually needs to exist (be rendered, etc)
when this method is called to be successful.Parameters:
| Ext | |
getHead()
:
Ext.Element Returns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:
| 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. 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 | |
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.
Parameters:
| 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:
| Ext | |
isBoolean( Mixed value )
:
BooleanReturns true if the passed value is a boolean. Returns true if the passed value is a boolean. Parameters:
| 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:
| Ext | |
isDefined( Mixed value )
:
BooleanReturns true if the passed value is not undefined. Returns true if the passed value is not undefined. Parameters:
| Ext | |
isElement( Mixed value )
:
BooleanReturns true if the passed value is an HTMLElement Returns true if the passed value is an HTMLElement 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( 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:
| 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:
| 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:
| 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:
| Ext | |
isString( Mixed value )
:
BooleanReturns true if the passed value is a string. Returns true if the passed value is a string. Parameters:
| 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. Parameters:
| Ext | |
max( Array|NodeList arr , [Function comp ] )
:
ObjectReturns the maximum value in the Array Returns the maximum value in the Array Parameters:
| Ext | |
mean( Array arr )
:
NumberCalculates the mean of the Array Calculates the mean of the Array Parameters:
| Ext | |
min( Array|NodeList arr , [Function comp ] )
:
ObjectReturns the minimum value in the Array. Returns the minimum value in the Array. Parameters:
| 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:
Parameters:
| 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:
Parameters:
| 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:
| 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 ... Adds a listener to be notified 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 | |
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:
Parameters:
| 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
Parameters:
| Ext | |
preg( String ptype , Constructor cls )
:
voidShorthand for Ext.ComponentMgr.registerPlugin Shorthand for Ext.ComponentMgr.registerPlugin 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 | |
reg( String xtype , Constructor cls )
:
voidShorthand for Ext.ComponentMgr.registerType Shorthand for Ext.ComponentMgr.registerType Parameters:
| 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
Parameters:
| 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:
| Ext | |
sum( Array arr )
:
NumberCalculates the sum of the Array Calculates the sum of the Array 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 | |
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:
Parameters:
| 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:
| 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:
| 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 , [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. Parameters:
| 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
Parameters:
| 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.
Parameters:
| Ext |