Package: | Global |
Defined In: | Ext.js |
Class: | Ext |
Extends: | Object |
Property | Defined By | |
---|---|---|
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 | |
emptyFn : Function A reusable empty function | 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 true). | Ext | |
isReady : Boolean True when the document is fully initialized and ready for action | Ext | |
isSecure : Boolean True if the page is running over SSL | Ext | |
version : String The version of the framework | Ext |
Method | Defined By | |
---|---|---|
apply( Object object , 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 | |
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 | |
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 | |
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 | |
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.
Here are some examples:
// gets dom node ba... Return the dom node for the passed String (id), dom node, or Ext.Element.
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 head as an Ext.Element. Returns the current document head as an Ext.Element. Parameters:
| Ext | |
getOrientation()
:
String Returns the current orientation of the mobile device Returns the current orientation of the mobile device Parameters:
| Ext | |
getStore( String/Object id )
:
Ext.data.StoreGets a registered Store by id (shortcut to lookup) Gets a registered Store by id (shortcut to lookup) Parameters:
| Ext | |
htmlDecode( String value )
:
StringConvert certain characters (&, <, >, and ') from their HTML character equivalents. Convert certain characters (&, <, >, and ') from their HTML character equivalents. Parameters:
| Ext | |
htmlEncode( String value )
:
StringConvert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages. Convert certain characters (&, <, >, and ') to their HTML character equivalents for literal display in web pages. 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( 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 )
:
Booleanutil
Returns true if the passed value is a boolean. util
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 | |
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 | |
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 | |
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] Parameters:
| Ext | |
preg( String ptype , Constructor cls )
:
voidShorthand for Ext.PluginMgr.registerType Shorthand for Ext.PluginMgr.registerType Parameters:
| Ext | |
reg( String xtype , Constructor cls )
:
voidShorthand for Ext.ComponentMgr.registerType Shorthand for Ext.ComponentMgr.registerType Parameters:
| Ext | |
regApplication( Object config )
:
Ext.ApplicationShorthand for Ext.ApplicationManager.register
Creates a new Application class from the specified config object. See E... Shorthand for Ext.ApplicationManager.register
Creates a new Application class from the specified config object. See Ext.Application for full examples. Parameters:
| Ext | |
regController( Object config )
:
Ext.ControllerShorthand for Ext.ControllerMgr.register
Creates a new Controller class from the specified config object. See Ext.Con... Shorthand for Ext.ControllerMgr.register
Creates a new Controller class from the specified config object. See Ext.Controller for full examples. Parameters:
| Ext | |
regLayout( String type , Constructor cls )
:
voidShorthand for Ext.layout.LayoutManager.registerType Shorthand for Ext.layout.LayoutManager.registerType Parameters:
| Ext | |
regModel( Object config )
:
Ext.data.ModelShorthand for Ext.ModelMgr.registerType
Creates a new Model class from the specified config object. See Ext.data.Mode... Shorthand for Ext.ModelMgr.registerType
Creates a new Model class from the specified config object. See Ext.data.Model for full examples. Parameters:
| Ext | |
regStore( String id , Object config , Constructor cls )
:
voidCreates a new store for the given id and config, then registers it with the Store Mananger.
Sample usage:
Ext.regSto... Creates a new store for the given id and config, then registers it with the Store Mananger. Sample usage:
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 | |
repaint()
:
void Repaints the whole page. This fixes frequently encountered painting issues in mobile Safari. Repaints the whole page. This fixes frequently encountered painting issues in mobile Safari. Parameters:
| Ext | |
select( String/Array selector , [HTMLElement/String root ] )
:
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
CompositeElement object. Parameters:
| Ext | |
setup( Object config )
:
voidSets up a page for use on a mobile device. Sets up a page for use on a mobile device. Parameters:
| Ext | |
toArray( Iterable array , Number start , Number end )
:
(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 | |
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 |