Ext.data.JsonP.Ext_dom_Element({"alternateClassNames":["Ext.Element","Ext.core.Element"],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.dom.Element.Fly","Ext.dom.Layer"],"extends":"Ext.dom.AbstractElement","uses":[],"html":"
Alternate names
Ext.ElementExt.core.ElementHierarchy
Ext.BaseExt.dom.AbstractElementExt.dom.ElementSubclasses
Files
Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.
\n\nAll instances of this class inherit the methods of Ext.fx.Anim making visual effects easily available to all\nDOM elements.
\n\nNote that the events documented in this class are not Ext events, they encapsulate browser events. Some older browsers\nmay not support the full range of events. Which events are supported is beyond the control of Ext JS.
\n\nUsage:
\n\n// by id\nvar el = Ext.get(\"my-div\");\n\n// by DOM element reference\nvar el = Ext.get(myDivElement);\n
\n\nWhen an element is manipulated, by default there is no animation.
\n\nvar el = Ext.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n
\n\nMany of the functions for manipulating an element have an optional \"animate\" parameter. This parameter can be\nspecified as boolean (true) for default animation effects.
\n\n// default animation\nel.setWidth(100, true);\n
\n\nTo configure the effects, an object literal with animation options to use as the Element animation configuration\nobject can also be specified. Note that the supported Element animation configuration options are a subset of the\nExt.fx.Anim animation options specific to Fx effects. The supported Element animation configuration options\nare:
\n\nOption Default Description\n--------- -------- ---------------------------------------------\nduration 350 The duration of the animation in milliseconds\neasing easeOut The easing method\ncallback none A function to execute when the anim completes\nscope this The scope (this) of the callback function\n
\n\nUsage:
\n\n// Element animation options object\nvar opt = {\n duration: 1000,\n easing: 'elasticIn',\n callback: this.foo,\n scope: this\n};\n// animation with some options set\nel.setWidth(100, opt);\n
\n\nThe Element animation object being used for the animation will be set on the options object as \"anim\", which allows\nyou to stop or manipulate the animation. Here is an example:
\n\n// using the \"anim\" property to get the Anim object\nif(opt.anim.isAnimated()){\n opt.anim.stop();\n}\n
\n\nFor working with collections of Elements, see Ext.CompositeElement
\n\nFrom override Ext.rtl.dom.Element_position: This override adds RTL positioning methods to Ext.dom.Element.
\nDefined in override Ext.rtl.dom.Element_position.
\nDefaults to: ['position', 'top', 'right']
True to automatically adjust width and height settings for box-model issues.
\nDefaults to: true
The default unit to append to CSS values where a unit isn't provided.
\n\nOverridden in Ext.dom.AbstractElement_static.
\nDefaults to: "px"
Returns the X,Y
position of the passed element in browser document space without regard\nto any RTL direction settings.
Defined in override Ext.dom.Element_position.
\nThe element's default display mode.
\n\nDefined in override Ext.dom.Element_fx.
\nDefaults to: ""
Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self
is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison
Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); // dependent on 'this'\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n
\nThis shared object is keyed by style name (e.g., 'margin-left' or 'marginLeft'). The\nvalues are objects with the following properties:
\n\nname
(String) : The actual name to be presented to the DOM. This is typically the value\n returned by normalize.get
(Function) : A hook function that will perform the get on this style. These\n functions receive \"(dom, el)\" arguments. The dom
parameter is the DOM Element\n from which to get ths tyle. The el
argument (may be null) is the Ext.Element.set
(Function) : A hook function that will perform the set on this style. These\n functions receive \"(dom, value, el)\" arguments. The dom
parameter is the DOM Element\n from which to get ths tyle. The value
parameter is the new value for the style. The\n el
argument (may be null) is the Ext.Element.The this
pointer is the object that contains get
or set
, which means that\nthis.name
can be accessed if needed. The hook functions are both optional.
Defined in override Ext.dom.AbstractElement_style.
\nDefaults to: {}
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nAdd or remove the Ext.Layer.visibilityCls class to hide the element.
\nDefaults to: 4
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'display' property to hide the element.
\nDefaults to: 2
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse CSS absolute positioning and top/left offsets to hide the element.
\nDefaults to: 3
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'visibility' property to hide the element.
\n\nNote that in this mode, isVisible may return true\nfor an element even though it actually has a parent element that is hidden. For this\nreason, and in most cases, using the OFFSETS mode is a better choice.
\nDefaults to: 1
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: {l: 'border-left-width', r: 'border-right-width', t: 'border-top-width', b: 'border-bottom-width'}
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: /(-[a-z])/gi
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: /([a-z0-9\\-]+)\\s*:\\s*([^;\\s]+(?:\\s*[^;\\s]+)*)?;?/gi
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: {l: 'margin-left', r: 'margin-right', t: 'margin-top', b: 'margin-bottom'}
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: /^-ms-/
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: /alpha\\(opacity=(.*)\\)/i
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: {l: 'padding-left', r: 'padding-right', t: 'padding-top', b: 'padding-bottom'}
Defined in override Ext.dom.AbstractElement_static.
\nDefaults to: {}
Creates new Element directly.
\nBy default the constructor checks to see if there is already an instance of this\nelement in the cache and if there is it returns the same instance. This will skip that check (useful for extending\nthis class).
\nOverrides: Ext.dom.AbstractElement.constructor
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nthis
\nSets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
\n\nDefined in override Ext.dom.Element_style.
\nThe class to add
\nA test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.
\nThe scope to execute the testFn in.
\nthis
\nSets up event handlers to add and remove a css class when this element has the focus
\n\nDefined in override Ext.dom.Element_style.
\nThe class to add
\nA test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.
\nThe scope to execute the testFn in.
\nthis
\nSets up event handlers to add and remove a css class when the mouse is over this element
\n\nDefined in override Ext.dom.Element_style.
\nThe class to add
\nA test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.
\nThe scope to execute the testFn in.
\nthis
\nCreates a KeyMap for this element
\nThe KeyMap config. See Ext.util.KeyMap for more details
\nThe KeyMap created
\nShorthand for on.
\n\nAppends an event handler to this element.
\nThe name of event to handle.
\n\nThe handler function the event invokes. This function is passed the following parameters:
\n\n\n\n\nevt : EventObject
\n\nThe EventObject describing the event.
el : HtmlElement
\n\nThe DOM element which was the target of the event. Note that this may be filtered by using the delegate option.
o : Object
\n\nThe options object from the call that setup the listener.
The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.
\n\nAn object containing handler configuration properties. This may contain any of\nthe following properties:
\n\n\n\n\nscope Object :
\n\nThe scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.
delegate String:
\n\nA simple selector to filter the target or look for a descendant of the target. See below for additional details.
stopEvent Boolean:
\n\nTrue to stop the event. That is stop propagation, and prevent the default action.
preventDefault Boolean:
\n\nTrue to prevent the default action
stopPropagation Boolean:
\n\nTrue to prevent event propagation
normalized Boolean:
\n\nFalse to pass a browser event to the handler function instead of an Ext.EventObject
target Ext.dom.Element:
\n\nOnly call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.
delay Number:
\n\nThe number of milliseconds to delay the invocation of the handler after the event fires.
single Boolean:
\n\nTrue to add a handler to handle just the next firing of the event, and then remove itself.
buffer Number:
\n\nCauses the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is not invoked, but the new\nhandler is scheduled in its place.
Combining Options
\n\n\n\n\nUsing the options argument, it is possible to combine different types of listeners:
\n\n\n\n\nA delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options\nobject. The options object is available as the third parameter in the handler function.
\n\n\n\n\nCode:
\n\n\n\n\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});\n
\n\n\n\n\nAttaching multiple handlers in 1 call
\n\n\n\n\nThe method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple handlers.
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : {\n fn: this.onClick,\n scope: this,\n delay: 100\n },\n 'mouseover' : {\n fn: this.onMouseOver,\n scope: this\n },\n 'mouseout' : {\n fn: this.onMouseOut,\n scope: this\n }\n});\n
\n\n\n\n\nOr a shorthand syntax:
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut,\n scope: this\n});\n
\n\n\n\n\ndelegate
\n\n\n\n\nThis is a configuration option that you can pass along when registering a handler for an event to assist with\nevent delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure\nto memory-leaks. By registering an event for a container element as opposed to each element within a container.\nBy setting this configuration option to a simple selector, the target element will be filtered to look for a\ndescendant of the target. For example:
\n\n\n\n\n// using this markup:\n<div id='elId'>\n <p id='p1'>paragraph one</p>\n <p id='p2' class='clickable'>paragraph two</p>\n <p id='p3'>paragraph three</p>\n</div>\n\n// utilize event delegation to registering just one handler on the container element:\nel = Ext.get('elId');\nel.on(\n 'click',\n function(e,t) {\n // handle click\n console.info(t.id); // 'p2'\n },\n this,\n {\n // filter the target element to be a descendant with the class 'clickable'\n delegate: '.clickable'\n }\n);\n
\n\nthis
\n\nDefined in override Ext.dom.Element_anim.
\nPerforms custom animation on this Element.
\n\nThe following properties may be specified in from
, to
, and keyframe
objects:
x
- The page X position in pixels.
y
- The page Y position in pixels
left
- The element's CSS left
value. Units must be supplied.
top
- The element's CSS top
value. Units must be supplied.
width
- The element's CSS width
value. Units must be supplied.
height
- The element's CSS height
value. Units must be supplied.
scrollLeft
- The element's scrollLeft
value.
scrollTop
- The element's scrollTop
value.
opacity
- The element's opacity
value. This must be a value between 0
and 1
.
Be aware that animating an Element which is being used by an Ext Component without in some way informing the\nComponent about the changed element state will result in incorrect Component behaviour. This is because the\nComponent will be using the old state of the element. To avoid this problem, it is now possible to directly\nanimate certain properties of Components.
\n\nDefined in override Ext.dom.Element_anim.
\nConfiguration for Ext.fx.Anim.\nNote that the to config is required.
\nthis
\nAppends the passed element(s) to this element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe id or element to insert or a DomHelper config\nThe id of the node, a DOM Node or an existing Element.
\nTrue to return the raw DOM element instead of Ext.dom.AbstractElement
\nDefaults to: false
The inserted Element.
\nAppends this element to the passed element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe new parent element.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nMore flexible version of setStyle for setting style properties.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nA style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.
\nthis
\nWraps the specified element with a special 9 element markup/CSS block that renders by default as\na gray container with a gradient background, rounded corners and a 4-way shadow.
\n\nThis special markup is used throughout Ext when box wrapping elements (Ext.button.Button,\nExt.panel.Panel when frame=true, Ext.window.Window).\nThe markup is of this form:
\n\nExt.dom.Element.boxMarkup =\n'<div class=\"{0}-tl\"><div class=\"{0}-tr\"><div class=\"{0}-tc\"></div></div></div>\n<div class=\"{0}-ml\"><div class=\"{0}-mr\"><div class=\"{0}-mc\"></div></div></div>\n<div class=\"{0}-bl\"><div class=\"{0}-br\"><div class=\"{0}-bc\"></div></div></div>';\n
\n\nExample usage:
\n\n// Basic box wrap\nExt.get(\"foo\").boxWrap();\n\n// You can also add a custom class and use CSS inheritance rules to customize the box look.\n// 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example\n// for how to create a custom box wrap style.\nExt.get(\"foo\").boxWrap().addCls(\"x-box-blue\");\n
\n\nDefined in override Ext.dom.Element_style.
\nA base CSS class to apply to the containing wrapper element.\nNote that there are a number of CSS rules that are dependent on this name to make the overall effect work,\nso if you supply an alternate base class, make sure you also supply all of the necessary rules.
\nDefaults to: 'x-box'
The outermost wrapping element of the created box structure.
\nWhen an element is moved around in the DOM, or is hidden using display:none
, it loses layout, and therefore\nall scroll positions of all descendant elements are lost.
This function caches them, and returns a function, which when run will restore the cached positions.\nIn the following example, the Panel is moved from one Container to another which will cause it to lose all scroll positions:
\n\nvar restoreScroll = myPanel.el.cacheScrollValues();\nmyOtherContainer.add(myPanel);\nrestoreScroll();\n
\nA function which will restore all descentant elements of this Element to their scroll\npositions recorded when this function was executed. Be aware that the returned function is a closure which has\ncaptured the scope of cacheScrollValues
, so take care to derefence it as soon as not needed - if is it is a var
\nit will drop out of scope, and the reference will be freed.
Call the original method that was previously overridden with override
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n This method has been deprecated
\nas of 4.1. Use callParent instead.
\n\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callOverridden(arguments)
Returns the result of calling the overridden method
\nCall the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).
\n\n Ext.define('My.Base', {\n constructor: function (x) {\n this.x = x;\n },\n\n statics: {\n method: function (x) {\n return x;\n }\n }\n });\n\n Ext.define('My.Derived', {\n extend: 'My.Base',\n\n constructor: function () {\n this.callParent([21]);\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // alerts 21\n
\n\nThis can be used with an override as follows:
\n\n Ext.define('My.DerivedOverride', {\n override: 'My.Derived',\n\n constructor: function (x) {\n this.callParent([x*2]); // calls original My.Derived constructor\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // now alerts 42\n
\n\nThis also works with static methods.
\n\n Ext.define('My.Derived2', {\n extend: 'My.Base',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Base.method\n }\n }\n });\n\n alert(My.Base.method(10); // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\nLastly, it also works with overridden static methods.
\n\n Ext.define('My.Derived2Override', {\n override: 'My.Derived2',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Derived2.method\n }\n }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\n\nTo override a method and replace it and also call the superclass method, use\ncallSuper. This is often done to patch a method to fix a bug.
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result of calling the parent method
\nThis method is used by an override to call the superclass method but bypass any\noverridden method. This is often done to \"patch\" a method that contains a bug\nbut for whatever reason cannot be fixed directly.
\n\nConsider:
\n\n Ext.define('Ext.some.Class', {\n method: function () {\n console.log('Good');\n }\n });\n\n Ext.define('Ext.some.DerivedClass', {\n method: function () {\n console.log('Bad');\n\n // ... logic but with a bug ...\n\n this.callParent();\n }\n });\n
\n\nTo patch the bug in DerivedClass.method
, the typical solution is to create an\noverride:
Ext.define('App.paches.DerivedClass', {\n override: 'Ext.some.DerivedClass',\n\n method: function () {\n console.log('Fixed');\n\n // ... logic but with bug fixed ...\n\n this.callSuper();\n }\n });\n
\n\nThe patch method cannot use callParent
to call the superclass method
since\nthat would call the overridden method containing the bug. In other words, the\nabove patch would only produce \"Fixed\" then \"Good\" in the console log, whereas,\nusing callParent
would produce \"Fixed\" then \"Bad\" then \"Good\".
The arguments, either an array or the arguments
object\nfrom the current method, for example: this.callSuper(arguments)
Returns the result of calling the superclass method
\nCenters the Element in either the viewport, or another Element.
\n\nDefined in override Ext.dom.Element_position.
\nelement in\nwhich to center the element.
\nSelects a single direct child based on the passed CSS selector (the selector should not contain an id).
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.dom.Element.
\nDefaults to: false
The child Ext.dom.Element (or DOM node if returnDom = true)
\nRemoves Empty, or whitespace filled text nodes. Combines adjacent text nodes.
\nBy default the element keeps track if it has been cleaned already\nso you can call this over and over. However, if you update the element and need to force a reclean, you\ncan pass true.
\nDefaults to: false
Alias for removeAllListeners.
\n\nRemoves all previous added listeners from this element
\nthis
\n\nClears any opacity settings from this element. Required in some cases for IE.
\n\nDefined in override Ext.dom.Element_style.
\nthis
\nClears positioning back to the default when the document was loaded.
\n\nDefined in override Ext.dom.Element_position.
\nThe value to use for the left, right, top, bottom.\nYou could use 'auto'.
\nDefaults to: ''
this
\nStore the current overflow setting and clip overflow on the element - use unclip to remove
\n\nDefined in override Ext.dom.Element_style.
\nthis
\nCreates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nDomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.
\na child element of this element
\ntrue to return the dom node instead of creating an Element
\nDefaults to: false
The new child element
\nCreates a proxy element of this element
\nThe class name of the proxy element or a DomHelper config object
\nThe element or element id to render the proxy to. Defaults to: document.body.
\nTrue to align and size the proxy to this element now.
\nDefaults to: false
The new proxy element
\nCreates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.
\nThe new shim element
\nAlias to remove.
\n\nRemoves this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
\nOverrides: Ext.Base.destroy
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.dom.Element
\nDefaults to: false
The child Ext.dom.Element (or DOM node if returnDom = true)
\nConvenience method for setVisibilityMode(Element.DISPLAY)
\nWhat to set display to when visible
\nthis
\nFade an element in (from transparent to opaque). The ending opacity can be specified using the opacity
\nconfig option. Usage:
// default: fade in from opacity 0 to 100%\nel.fadeIn();\n\n// custom: fade in from opacity 0 to 75% over 2 seconds\nel.fadeIn({ opacity: .75, duration: 2000});\n\n// common config options shown with default values\nel.fadeIn({\n opacity: 1, //can be any value between 0 and 1 (e.g. .5)\n easing: 'easeOut',\n duration: 500\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nFade an element out (from opaque to transparent). The ending opacity can be specified using the opacity
\nconfig option. Note that IE may require useDisplay:true
in order to redisplay correctly.\nUsage:
// default: fade out from the element's current opacity to 0\nel.fadeOut();\n\n// custom: fade out from the element's current opacity to 25% over 2 seconds\nel.fadeOut({ opacity: .25, duration: 2000});\n\n// common config options shown with default values\nel.fadeOut({\n opacity: 0, //can be any value between 0 and 1 (e.g. .5)\n easing: 'easeOut',\n duration: 500,\n remove: false,\n useDisplay: false\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nLooks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe simple selector to test
\nThe max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
\nTrue to return a Ext.Element object instead of DOM node
\nDefaults to: false
The matching DOM node (or null if no match was found)
\nLooks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe simple selector to test
\nThe max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
\nTrue to return a Ext.Element object instead of DOM node
\nDefaults to: false
The matching DOM node (or null if no match was found)
\nGets the first child, skipping text nodes
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The first child or null
\nTries to focus the element. Any exceptions are caught and ignored.
\nMilliseconds to defer the focus
\nthis
\nAlias for isFocusable.
\n\nChecks whether this element can be focused.
\nTrue if the element is focusable
\n\nShows a ripple of exploding, attenuating borders to draw attention to an Element. Usage:
\n\n// default: a single light blue ripple\nel.frame();\n\n// custom: 3 red ripples lasting 3 seconds total\nel.frame(\"#ff0000\", 3, { duration: 3000 });\n\n// common config options shown with default values\nel.frame(\"#C3DAF9\", 1, {\n duration: 1000 // duration of each individual ripple.\n // Note: Easing is not configurable and will be ignored if included\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nThe hex color value for the border.
\nDefaults to: '#C3DAF9'
The number of ripples to display.
\nDefaults to: 1
Object literal with any of the Ext.fx.Anim config options
\nThe Element
\nReturns the active element in the DOM. If the browser supports activeElement\non the document, this is returned. If not, the focus is tracked and the active\nelement is maintained internally.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nThe active (focused) element in the document.
\nGets the width of the border(s) for the specified side(s)
\n\nDefined in override Ext.dom.AbstractElement_style.
\nCan be t, l, r, b or any combination of those to add multiple values. For example,\npassing 'lr'
would get the border left width + the border right width.
The width of the sides passed added together
\nCalculates the x, y to center this element on the screen
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nThe x, y values [x, y]
\nReturn the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff
) and valid values\nare convert to standard 6 digit hex color.
Defined in override Ext.dom.Element_style.
\nReturns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements\nif a height has not been set using CSS.
\n\nDefined in override Ext.dom.Element_style.
\nReturns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements\nif a width has not been set using CSS.
\n\nDefined in override Ext.dom.Element_style.
\nReturns the innerHTML of an Element or an empty string if the element's\ndom no longer exists.
\nGets the local CSS X position for the element
\n\nDefined in override Ext.dom.Element_position.
\nGets the local CSS X and Y position for the element
\n\nDefined in override Ext.dom.Element_position.
\n[x, y]
\nGets the local CSS Y position for the element
\n\nDefined in override Ext.dom.Element_position.
\nReturns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,\nthen it returns the calculated width of the sides (see getPadding)
\n\nDefined in override Ext.dom.AbstractElement_style.
\nAny combination of l, r, t, b to get the sum of those sides
\nGets the width of the padding(s) for the specified side(s)
\n\nDefined in override Ext.dom.AbstractElement_style.
\nCan be t, l, r, b or any combination of those to add multiple values. For example,\npassing 'lr'
would get the padding left + the padding right.
The padding of the sides passed added together
\nReturns an object defining the area of this Element which can be passed to\nExt.util.Positionable.setBox to set another Element's size/location to match this element.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\nuse Ext.util.Positionable.getBox to get a box object, and\nExt.util.Positionable.getRegion to get a Region.
\n\nIf true an Ext.util.Region will be returned
\nbox An object in the following format:
\n\n{\n left: <Element's X position>,\n top: <Element's Y position>,\n width: <Element's width>,\n height: <Element's height>,\n bottom: <Element's lower bound>,\n right: <Element's rightmost bound>\n}\n
\n\nThe returned object may also be addressed as an Array where index 0 contains\nthe X position and index 1 contains the Y position. So the result may also be\nused for setXY
\nDefined in override Ext.rtl.dom.Element_position.
\n\nFrom override Ext.dom.Element_position: Gets an object with all CSS positioning properties. Useful along with
\n\nthe element.
\nCreates a function to call to clean up problems with the work-around for the\nWebKit RightMargin bug. The work-around is to add \"display: 'inline-block'\" to\nthe element before calling getComputedStyle and then to restore its original\ndisplay value. The problem with this is that it corrupts the selection of an\nINPUT or TEXTAREA element (as in the \"I-beam\" goes away but ths focus remains).\nTo cleanup after this, we need to capture the selection of any such element and\nthen restore it after we have restored the display style.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nThe top-most element being adjusted.
\nReturns the current scroll position of the element.
\n\nDefined in override Ext.dom.Element_scroll.
\nAn object containing the scroll position in the format\n{left: (scrollLeft), top: (scrollTop)}
Gets the left scroll position
\n\nDefined in override Ext.dom.Element_scroll.
\nThe left scroll position
\nGets the top scroll position
\n\nDefined in override Ext.dom.Element_scroll.
\nThe top scroll position
\nReturns a named style property based on computed/currentStyle (primary) and\ninline-style if primary is not available.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe style property (or multiple property names\nin an array) whose value is returned.
\nif true
only inline styles will be returned.
Defaults to: false
Returns the dimensions of the element available to lay content out in.
\n\ngetStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and\noffsetWidth/clientWidth. To obtain the size excluding scrollbars, use getViewSize.
\n\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.
\n\nDefined in override Ext.dom.Element_style.
\nReturns the width in pixels of the passed text, or the width of the text in this Element.
\nThe text to measure. Defaults to the innerHTML of the element.
\nThe minumum value to return.
\nThe maximum value to return.
\nThe text width in pixels.
\nReturns the dimensions of the element available to lay content out in.
\n\nIf the element (or any ancestor element) has CSS style display: none
, the dimensions will be zero.
Example:
\n\nvar vpSize = Ext.getBody().getViewSize();\n\n// all Windows created afterwards will have a default value of 90% height and 95% width\nExt.Window.override({\n width: vpSize.width * 0.9,\n height: vpSize.height * 0.95\n});\n// To handle window resizing you would have to hook onto onWindowResize.\n
\n\ngetViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.\nTo obtain the size including scrollbars, use getStyleSize
\n\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nGets element X position in page coordinates
\n\nDefined in override Ext.dom.Element_position.
\nGets element Y position in page coordinates
\n\nDefined in override Ext.dom.Element_position.
\nSlides the element while fading it out of view. An anchor point can be optionally passed to set the ending point\nof the effect. Usage:
\n\n// default: slide the element downward while fading out\nel.ghost();\n\n// custom: slide the element out to the right with a 2-second duration\nel.ghost('r', { duration: 2000 });\n\n// common config options shown with default values\nel.ghost('b', {\n easing: 'easeOut',\n duration: 500\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nOne of the valid Ext.fx.Anim anchor positions (defaults to bottom: 'b')
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nDetermine if the Element has a relevant height and width available based\nupon current logical visibility state
\n\nDefined in override Ext.dom.Element_fx.
\nHide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\n\nDefined in override Ext.dom.Element_fx.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.hide
Highlights the Element by setting a color (applies to the background-color by default, but can be changed using\nthe \"attr\" config option) and then fading back to the original color. If no original color is available, you\nshould provide the \"endColor\" config option which will be cleared after the animation. Usage:
\n\n// default: highlight background to yellow\nel.highlight();\n\n// custom: highlight foreground text to blue for 2 seconds\nel.highlight(\"0000ff\", { attr: 'color', duration: 2000 });\n\n// common config options shown with default values\nel.highlight(\"ffff9c\", {\n attr: \"backgroundColor\", //can be any valid CSS property (attribute) that supports a color value\n endColor: (current color) or \"ffffff\",\n easing: 'easeIn',\n duration: 1000\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nThe highlight color. Should be a 6 char hex color without the leading #\n(defaults to yellow: 'ffff9c')
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nSets up event handlers to call the passed functions when the mouse is moved into and out of the Element.
\nThe function to call when the mouse enters the Element.
\nThe function to call when the mouse leaves the Element.
\nThe scope (this
reference) in which the functions are executed. Defaults\nto the Element's DOM element.
Options for the listener. See the\noptions parameter.
\nthis
\nInitialize configuration for this class. a typical example:
\n\nExt.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nthis
\nInitializes a Ext.dd.DD drag drop object for this element.
\n\nDefined in override Ext.dom.Element_dd.
\nThe group the DD object is member of
\nThe DD config object
\nAn object containing methods to override/implement on the DD object
\nThe DD object
\nInitializes a Ext.dd.DDProxy object for this element.
\n\nDefined in override Ext.dom.Element_dd.
\nThe group the DDProxy object is member of
\nThe DDProxy config object
\nAn object containing methods to override/implement on the DDProxy object
\nThe DDProxy object
\nInitializes a Ext.dd.DDTarget object for this element.
\n\nDefined in override Ext.dom.Element_dd.
\nThe group the DDTarget object is member of
\nThe DDTarget config object
\nAn object containing methods to override/implement on the DDTarget object
\nThe DDTarget object
\nInserts this element after the passed element in the DOM
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe element to insert after.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nInserts this element before the passed element in the DOM
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe element before which this element will be inserted.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nInserts (or creates) an element (or DomHelper config) as the first child of this element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe id or element to insert or a DomHelper config\nto create and insert
\nThe new child
\nInserts an html fragment into this element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nWhere to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.\nSee Ext.dom.Helper.insertHtml for details.
\nThe HTML fragment
\nTrue to return an Ext.dom.AbstractElement
\nDefaults to: false
The inserted node (or nearest related if more than 1 inserted)
\nInserts (or creates) the passed element (or DomHelper config) as a sibling of this element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe id, element to insert or a DomHelper config\nto create and insert or an array of any of those.
\n'before' or 'after'
\nDefaults to: 'before'
True to return the raw DOM element instead of Ext.dom.AbstractElement
\nDefaults to: false
The inserted Element. If an array is passed, the last inserted element is returned.
\nReturns true if this element is masked. Also re-centers any displayed message within the mask.
\nReturns true if this element is scrollable.
\n\nDefined in override Ext.dom.Element_scroll.
\nReturns true if the value of the given property is visually transparent. This\nmay be due to a 'transparent' style value or an rgba value with 0 in the alpha\ncomponent.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe style property whose value is to be tested.
\nTrue if the style property is visually transparent.
\nChecks whether the element is currently visible using both visibility and display properties.
\nTrue to walk the dom and see if parent elements are hidden.\nIf false, the function only checks the visibility of the element itself and it may return\ntrue
even though a parent is not visible.
Defaults to: false
true
if the element is currently visible, else false
Gets the last child, skipping text nodes
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The last child or null
\nDirect access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object\nparameter as Ext.ElementLoader.load
\nthis
\nPuts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.
\nA message to display in the mask
\nA css class to apply to the msg element
\nThe mask element
\nOverrides: Ext.dom.AbstractElement.mask
Monitors this Element for the mouse leaving. Calls the function after the specified delay only if\nthe mouse was not moved back into the Element within the delay. If the mouse was moved\nback in, the function is not called.
\nThe delay in milliseconds to wait for possible mouse re-entry before calling the handler function.
\nThe function to call if the mouse remains outside of this Element for the specified time.
\nThe scope (this
reference) in which the handler function executes. Defaults to this Element.
The listeners object which was added to this element so that monitoring can be stopped. Example usage:
\n\n// Hide the menu if the mouse moves out for 250ms or more\nthis.mouseLeaveMonitor = this.menuEl.monitorMouseLeave(250, this.hideMenu, this);\n\n...\n// Remove mouseleave monitor on menu destroy\nthis.menuEl.un(this.mouseLeaveMonitor);\n
\nSets the position of the element in page coordinates.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\nUse setXY instead.
\n\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nTrue for the default animation, or a standard\nElement animation config object
\nthis
\nReturns true if this element needs an explicit tabIndex to make it focusable. Input fields, text areas, buttons\nanchors elements with an href etc do not need a tabIndex, but structural elements do.
\nGets the next sibling, skipping text nodes
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The next sibling or null
\nAppends an event handler to this element.
\nThe name of event to handle.
\n\nThe handler function the event invokes. This function is passed the following parameters:
\n\n\n\n\nevt : EventObject
\n\nThe EventObject describing the event.
el : HtmlElement
\n\nThe DOM element which was the target of the event. Note that this may be filtered by using the delegate option.
o : Object
\n\nThe options object from the call that setup the listener.
The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.
\n\nAn object containing handler configuration properties. This may contain any of\nthe following properties:
\n\n\n\n\nscope Object :
\n\nThe scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.
delegate String:
\n\nA simple selector to filter the target or look for a descendant of the target. See below for additional details.
stopEvent Boolean:
\n\nTrue to stop the event. That is stop propagation, and prevent the default action.
preventDefault Boolean:
\n\nTrue to prevent the default action
stopPropagation Boolean:
\n\nTrue to prevent event propagation
normalized Boolean:
\n\nFalse to pass a browser event to the handler function instead of an Ext.EventObject
target Ext.dom.Element:
\n\nOnly call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.
delay Number:
\n\nThe number of milliseconds to delay the invocation of the handler after the event fires.
single Boolean:
\n\nTrue to add a handler to handle just the next firing of the event, and then remove itself.
buffer Number:
\n\nCauses the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is not invoked, but the new\nhandler is scheduled in its place.
Combining Options
\n\n\n\n\nUsing the options argument, it is possible to combine different types of listeners:
\n\n\n\n\nA delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options\nobject. The options object is available as the third parameter in the handler function.
\n\n\n\n\nCode:
\n\n\n\n\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});\n
\n\n\n\n\nAttaching multiple handlers in 1 call
\n\n\n\n\nThe method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple handlers.
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : {\n fn: this.onClick,\n scope: this,\n delay: 100\n },\n 'mouseover' : {\n fn: this.onMouseOver,\n scope: this\n },\n 'mouseout' : {\n fn: this.onMouseOut,\n scope: this\n }\n});\n
\n\n\n\n\nOr a shorthand syntax:
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut,\n scope: this\n});\n
\n\n\n\n\ndelegate
\n\n\n\n\nThis is a configuration option that you can pass along when registering a handler for an event to assist with\nevent delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure\nto memory-leaks. By registering an event for a container element as opposed to each element within a container.\nBy setting this configuration option to a simple selector, the target element will be filtered to look for a\ndescendant of the target. For example:
\n\n\n\n\n// using this markup:\n<div id='elId'>\n <p id='p1'>paragraph one</p>\n <p id='p2' class='clickable'>paragraph two</p>\n <p id='p3'>paragraph three</p>\n</div>\n\n// utilize event delegation to registering just one handler on the container element:\nel = Ext.get('elId');\nel.on(\n 'click',\n function(e,t) {\n // handle click\n console.info(t.id); // 'p2'\n },\n this,\n {\n // filter the target element to be a descendant with the class 'clickable'\n delegate: '.clickable'\n }\n);\n
\n\nthis
\n\nGets the parent node for this element, optionally chaining up trying to match a selector
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nFind a parent node that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The parent node or null
\nCreates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will\nhave no effect. Usage:
\n\nel.pause(1);\n
\n\nDefined in override Ext.dom.Element_anim.
\nThis method has been deprecated since 4.0
\nUse the delay
config to animate instead.
The length of time to pause (in seconds)
\nThe Element
\nInitializes positioning on this element. If a desired position is not passed,\nit will make the the element positioned relative IF it is not already positioned.
\n\nDefined in override Ext.dom.Element_position.
\nGets the previous sibling, skipping text nodes
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The previous sibling or null
\nFades the element out while slowly expanding it in all directions. When the effect is completed, the element will\nbe hidden (visibility = 'hidden') but block elements will still take up space in the document. Usage:
\n\n// default\nel.puff();\n\n// common config options shown with default values\nel.puff({\n easing: 'easeOut',\n duration: 500,\n useDisplay: false\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nRecursively removes all previous added listeners from this element and its children
\nthis
\nSelects child nodes based on the passed CSS selector (the selector should not contain an id).
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe CSS selector
\nAn array of the matched nodes
\nAdds one or more CSS classes to this element and removes the same class(es) from all siblings.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nthis
\nCreate an event handler on this element such that when the event fires and is handled by this element,\nit will be relayed to another object (i.e., fired again as if it originated from that object instead).
\nThe type of event to relay
\nAny object that extends Ext.util.Observable that will provide the context\nfor firing the relayed event
\nRemoves this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
\nRemoves one or more CSS classes from the element.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nthis
\nShorthand for un.
\n\nRemoves an event handler from this element.
\n\nNote: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.
\n\nExample:
\n\nel.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\nThe name of the event from which to remove the handler.
\n\nThe handler function to remove. This must be a reference to the function passed into the\non call.
\n\nIf a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.
\n\nthis
\n\nForces the browser to repaint this element
\n\nDefined in override Ext.dom.AbstractElement_style.
\nthis
\nReplaces the passed element with this element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe element to replace.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nReplaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nthis
\nReplaces this element with the passed element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nThe new element (id of the node, a DOM Node\nor an existing Element) or a DomHelper config of an element to create
\nThis element
\nDefined in override Ext.rtl.dom.Element_position.
\nDefined in override Ext.rtl.dom.Element_position.
\nAnimates the transition of an element's dimensions from a starting height/width to an ending height/width. This\nmethod is a convenience implementation of shift. Usage:
\n\n// change height and width to 100x100 pixels\nel.scale(100, 100);\n\n// common config options shown with default values. The height and width will default to\n// the element's existing values if passed as null.\nel.scale(\n [element's width],\n [element's height], {\n easing: 'easeOut',\n duration: 350\n }\n);\n
\n\nDefined in override Ext.dom.Element_anim.
\nThis method has been deprecated since 4.0
\nJust use animate instead.
\n\nThe new width (pass undefined to keep the original width)
\nThe new height (pass undefined to keep the original height)
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nScrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.
\n\nDefined in override Ext.dom.Element_scroll.
\nPossible values are:
\n\n\"l\"
(or \"left\"
)\"r\"
(or \"right\"
)\"t\"
(or \"top\"
, or \"up\"
)\"b\"
(or \"bottom\"
, or \"down\"
)How far to scroll the element in pixels
\ntrue for the default animation or a standard Element\nanimation config object
\nReturns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go.
\nScrolls this element by the passed delta values, optionally animating.
\n\nAll of the following are equivalent:
\n\n el.scrollBy(10, 10, true);\n el.scrollBy([10, 10], true);\n el.scrollBy({ x: 10, y: 10 }, true);\n
\n\nDefined in override Ext.dom.Element_scroll.
\nEither the x delta, an Array specifying x and y deltas or\nan object with \"x\" and \"y\" properties.
\nEither the y delta, or an animate flag or config object.
\nAnimate flag/config object if the delta values were passed separately.
\nthis
\nScrolls this element into view within the passed container.
\n\nDefined in override Ext.dom.Element_scroll.
\nThe container element\nto scroll. Should be a string (id), dom node, or Ext.Element.
\nDefaults to: document.body
False to disable horizontal scroll.
\nDefaults to: true
true for the default animation or a standard Element
\ntrue to highlight the element when it is in view.\nanimation config object
\nDefaults to: false
this
\nScrolls this element the specified scroll point. It does NOT do bounds checking so\nif you scroll to a weird value it will try to do it. For auto bounds checking, use scroll.
\n\nDefined in override Ext.dom.Element_scroll.
\nEither \"left\" for scrollLeft values or \"top\" for scrollTop values.
\nThe new scroll value
\ntrue for the default animation or a standard Element\nanimation config object
\nthis
\nCreates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe CSS selector
\nTrue to create a unique Ext.Element for each element. Defaults to a shared flyweight object.
\nThe composite element
\nEnable text selection for this element (normalized across browsers)
\n\nDefined in override Ext.dom.Element_style.
\nthis
\nSets the passed attributes as attributes of this element (a style attribute can be a string, object or function)
\nThe object with the attributes
\nfalse to override the default setAttribute to use expandos.
\nDefaults to: true
this
\nSets the element's CSS bottom style.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nNumber of pixels or CSS string value to set as\nthe bottom CSS property value
\nthis
\nSets the element's position and size in one shot. If animation is true then\nwidth, height, x and y will be animated concurrently.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\nUse Ext.util.Positionable.setBox instead.
\n\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nThe new width. This may be one of:
\n\nThe new height. This may be one of:
\n\ntrue for the default animation or\na standard Element animation config object
\nthis
\nSets the CSS display property. Uses originalDisplay if the specified value is a boolean true.
\n\nDefined in override Ext.dom.Element_fx.
\nBoolean value to display the element using its default display, or a string to set the display directly.
\nthis
\nSet the height of this Element.
\n\n// change the height to 200px and animate with default configuration\nExt.fly('elementId').setHeight(200, true);\n\n// change the height to 150px and animate with a custom configuration\nExt.fly('elId').setHeight(150, {\n duration : 500, // animation will have a duration of .5 seconds\n // will change the content to \"finished\"\n callback: function(){ this.update(\"finished\"); }\n});\n
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe new height. This may be one of:
\n\nthis
\nRemoves \"vertical\" state from this element (reverses everything done\nby setVertical).
\n\nDefined in override Ext.dom.Element_style.
\nSets the element's left position directly using CSS style\n(instead of setX).
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nthis
\nSets the element's left and top positions directly using CSS style
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nNumber of pixels or CSS string value to\nset as the left CSS property value
\nNumber of pixels or CSS string value to\nset as the top CSS property value
\nthis
\nSets the position of the element in page coordinates.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\nUse setXY instead.
\n\nX value for new position
\nY value for new position
\nTrue for the default animation, or a standard\nElement animation config object
\nthis
\nSet the opacity of the element
\n\nDefined in override Ext.dom.Element_style.
\nThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
\na standard Element animation config object or true
for\nthe default animation ({duration: 350, easing: 'easeIn'}
)
this
\nSet positioning with an object returned by getPositioning.
\n\nDefined in override Ext.dom.Element_position.
\nthis
\nSets the element's CSS right style.
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nthis
\nSets the left scroll position
\n\nDefined in override Ext.dom.Element_scroll.
\nThe left scroll position
\nthis
\nSets the top scroll position
\n\nDefined in override Ext.dom.Element_scroll.
\nThe top scroll position
\nthis
\nSet the size of this Element. If animation is true, both width and height will be animated concurrently.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe new width. This may be one of:
\n\n{width: widthValue, height: heightValue}
.The new height. This may be one of:
\n\nthis
\nWrapper for setting style properties, also takes single object parameter of multiple styles.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe style property to be set, or an object of multiple styles.
\nThe value to apply to the given property, or null if an object was passed.
\nthis
\nSets the element's top position directly using CSS style\n(instead of setY).
\n\nDefined in override Ext.dom.Element_position.
\nThis method has been deprecated
\n \n\nthis
\nChanges this Element's state to \"vertical\" (rotated 90 or 270 degrees).\nThis involves inverting the getters and setters for height and width,\nand applying hooks for rotating getters and setters for border/margin/padding.\n(getWidth becomes getHeight and vice versa), setStyle and getStyle will\nalso return the inverse when height or width are being operated on.
\n\nDefined in override Ext.dom.Element_style.
\nthe angle of rotation - either 90 or 270
\nan optional css class that contains the required\nstyles for switching the element to vertical orientation. Omit this if\nthe element already contains vertical styling. If cls is provided,\nit will be removed from the element when setHorizontal is called.
\nUse this to change the visibility mode between VISIBILITY, DISPLAY, OFFSETS or ASCLASS.
\nthis
\nSets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use\nthe display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property.
\n\nDefined in override Ext.dom.Element_fx.
\nWhether the element is visible
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.setVisible
Set the width of this Element.
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe new width. This may be one of:
\n\nthis
\nAnimates the transition of any combination of an element's dimensions, xy position and/or opacity. Any of these\nproperties not specified in the config object will not be changed. This effect requires that at least one new\ndimension, position or opacity setting must be passed in on the config object in order for the function to have\nany effect. Usage:
\n\n// slide the element horizontally to x position 200 while changing the height and opacity\nel.shift({ x: 200, height: 50, opacity: .8 });\n\n// common config options shown with default values.\nel.shift({\n width: [element's width],\n height: [element's height],\n x: [element's x position],\n y: [element's y position],\n opacity: [element's opacity],\n easing: 'easeOut',\n duration: 350\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nThis method has been deprecated since 4.0
\nJust use animate instead.
\n\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nShow this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\n\nDefined in override Ext.dom.Element_fx.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.show
Slides the element into view. An anchor point can be optionally passed to set the point of origin for the slide\neffect. This function automatically handles wrapping the element with a fixed-size container if needed. See the\nExt.fx.Anim class overview for valid anchor point options. Usage:
\n\n// default: slide the element in from the top\nel.slideIn();\n\n// custom: slide the element in from the right with a 2-second duration\nel.slideIn('r', { duration: 2000 });\n\n// common config options shown with default values\nel.slideIn('t', {\n easing: 'easeOut',\n duration: 500\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nOne of the valid Ext.fx.Anim anchor positions (defaults to top: 't')
\nObject literal with any of the Ext.fx.Anim config options
\nSet to true if preservation of any descendant elements'\nscrollTop
values is required. By default the DOM wrapping operation performed by slideIn
and\nslideOut
causes the browser to lose all scroll positions.
The Element
\nSlides the element out of view. An anchor point can be optionally passed to set the end point for the slide\neffect. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will\nstill take up space in the document. The element must be removed from the DOM using the 'remove' config option if\ndesired. This function automatically handles wrapping the element with a fixed-size container if needed. See the\nExt.fx.Anim class overview for valid anchor point options. Usage:
\n\n// default: slide the element out to the top\nel.slideOut();\n\n// custom: slide the element out to the right with a 2-second duration\nel.slideOut('r', { duration: 2000 });\n\n// common config options shown with default values\nel.slideOut('t', {\n easing: 'easeOut',\n duration: 500,\n remove: false,\n useDisplay: false\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nOne of the valid Ext.fx.Anim anchor positions (defaults to top: 't')
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\nGet the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics()
is scope-independent and it always returns the class from which it was called, regardless of what\nthis
points to during run-time
Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n
\nStops the specified event(s) from bubbling and optionally prevents the default action
\nan event / array of events to stop from bubbling
\ntrue to prevent the default action too
\nthis
\nBlinks the element as if it was clicked and then collapses on its center (similar to switching off a television).\nWhen the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still\ntake up space in the document. The element must be removed from the DOM using the 'remove' config option if\ndesired. Usage:
\n\n// default\nel.switchOff();\n\n// all config options shown with default values\nel.switchOff({\n easing: 'easeIn',\n duration: .3,\n remove: false,\n useDisplay: false\n});\n
\n\nDefined in override Ext.dom.Element_anim.
\nObject literal with any of the Ext.fx.Anim config options
\nThe Element
\n.\nCurrently used for updating grid cells without modifying DOM structure
\n\nSynchronizes content of this Element with the content of the passed element.
\n\nStyle and CSS class are copied from source into this Element, and contents are synched\nrecursively. If a child node is a text node, the textual data is copied.
\nToggles the element's visibility or display, depending on visibility mode.
\n\nDefined in override Ext.dom.Element_fx.
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nToggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
\n\nDefined in override Ext.dom.AbstractElement_style.
\nThe CSS class to toggle
\nthis
\nRemoves an event handler from this element.
\n\nNote: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.
\n\nExample:
\n\nel.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\nThe name of the event from which to remove the handler.
\n\nThe handler function to remove. This must be a reference to the function passed into the\non call.
\n\nIf a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.
\n\nthis
\n\nReturn clipping (overflow) to original clipping before clip was called
\n\nDefined in override Ext.dom.Element_style.
\nthis
\nHides a previously applied mask.
\nOverrides: Ext.dom.AbstractElement.unmask
Disables text selection for this element (normalized across browsers)
\n\nDefined in override Ext.dom.Element_style.
\nthis
\nWalks up the DOM looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).\nThis is a shortcut for findParentNode() that always returns an Ext.dom.Element.
\n\nDefined in override Ext.dom.AbstractElement_traversal.
\nThe simple selector to test
\nThe max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
\nTrue to return the DOM node instead of Ext.dom.Element
\nDefaults to: false
The matching DOM node (or null if no match was found)
\nUpdates the innerHTML of this element, optionally searching for and processing scripts.
\nThe new HTML
\nTrue to look for and process scripts (defaults to false)
\nFor async script loading you can be notified when the update completes
\nthis
\nOverrides: Ext.dom.AbstractElement.update
Creates and wraps this element with another element
\n\nDefined in override Ext.dom.AbstractElement_insertion.
\nDomHelper element config object for the wrapper element or null for an empty div
\nTrue to return the raw DOM element instead of Ext.dom.AbstractElement
\nDefaults to: false
A DomQuery selector to select a descendant node within the created element to use as the wrapping element.
\nThe newly created wrapper element
\nAdd methods / properties to the prototype of this class.
\n\nExt.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.addMembers({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nAdd / override static properties of this class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nRetrieves Ext.dom.Element objects. Ext.get is alias for Ext.dom.Element.get.
\n\nThis method does not retrieve Components. This method retrieves Ext.dom.Element\nobjects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentManager.get.
\n\nWhen passing an id, it should not include the #
character that is used for a css selector.
// For an element with id 'foo'\nExt.get('foo'); // Correct\nExt.get('#foo'); // Incorrect\n
\n\nUses simple caching to consistently return the same object. Automatically fixes if an object was recreated with\nthe same id via AJAX or DOM.
\nThe id of the node, a DOM Node or an existing Element.
\nThe Element object (or null if no matching element was found)
\nRetrieves the document height
\n\nDefined in override Ext.dom.AbstractElement_static.
\ndocumentHeight
\nRetrieves the document width
\n\nDefined in override Ext.dom.AbstractElement_static.
\ndocumentWidth
\nGet the current class' name in string format.
\n\nExt.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\nclassName
\nRetrieves the current orientation of the window. This is calculated by\ndeterming if the height is greater than the width.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nOrientation of window: 'portrait' or 'landscape'
\nRetrieves the viewport size of the window.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nobject containing width and height properties
\nRetrieves the viewport height of the window.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nviewportHeight
\nRetrieves the viewport width of the window.
\n\nDefined in override Ext.dom.AbstractElement_static.
\nviewportWidth
\nDefined in override Ext.rtl.dom.Element_position.
\n\nFrom override Ext.dom.Element_position: Gets element X and Y positions in page coordinates
\nAdds members to class.
\nThis method has been deprecated since 4.1
\nUse addMembers instead.
\n\nReturns an array of unique class names based upon the input strings, or string arrays.
\n\n\nThe number of parameters is unlimited.
\n\n\nExample
\n\n\n// Add x-invalid and x-mandatory classes, do not duplicate\nmyElement.dom.className = Ext.core.Element.mergeClsList(this.initialClasses, 'x-invalid x-mandatory');\n
\n\nA string of class names, or an array of class names.
\nA string of class names, or an array of class names.
\nAn array of strings representing remaining unique, merged class names. If class names were added to the first list, the changed
property will be true
.
Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.\nFor example:
\n\nDefined in override Ext.dom.AbstractElement_static.
\nThe property to normalize
\nThe normalized string
\nOverride members of this class. Overridden methods can be invoked via\ncallParent.
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n\nAs of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:
\n\nExt.define('My.CatOverride', {\n override: 'My.Cat',\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n
\n\nThe above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).
\nThis method has been deprecated since 4.1.0
\nUse Ext.define instead
\n\nThe properties to add to this class. This should be\nspecified as an object literal containing one or more properties.
\nthis class
\nParses a number or string representing margin sizes into an object. Supports CSS-style margin declarations\n(e.g. 10, \"10\", \"10 10\", \"10 10 10\" and \"10 10 10 10\" are all valid options and would return the same result)
\n\nDefined in override Ext.dom.AbstractElement_static.
\nAn object with margin sizes for top, right, bottom and left
\nConverts a CSS string into an object with a property for each style.
\n\nThe sample code below would return an object with 2 properties, one\nfor background-color and one for color.
\n\nvar css = 'background-color: red;color: blue; ';\nconsole.log(Ext.dom.Element.parseStyles(css));\n
\n\nDefined in override Ext.dom.AbstractElement_static.
\nA CSS string
\nstyles
\nReturns an array of unique class names deom the first parameter with all class names\nfrom the second parameter removed.
\n\n\nExample
\n\n\n// Remove x-invalid and x-mandatory classes if present.\nmyElement.dom.className = Ext.core.Element.removeCls(this.initialClasses, 'x-invalid x-mandatory');\n
\n\nA string of class names, or an array of class names.
\nA string of class names, or an array of class names to remove from existingClsList
.
An array of strings representing remaining class names. If class names were removed, the changed
property will be true
.
Selects elements based on the passed CSS selector to enable Element methods\nto be applied to many related elements in one statement through the returned CompositeElement or\nCompositeElementLite object.
\nThe CSS selector or an array of elements
\ntrue to create a unique Ext.Element for each element (defaults to a shared flyweight object)
\nThe root element of the query or id of the root
\nParses a number or string representing margin sizes into an object. Supports CSS-style margin declarations\n(e.g. 10, \"10\", \"10 10\", \"10 10 10\" and \"10 10 10 10\" are all valid options and would return the same result)
\n\nDefined in override Ext.dom.AbstractElement_static.
\nThe encoded margins, or an object with top, right,\nbottom, and left properties
\nThe type of units to add
\nAn string with unitized (px if units is not specified) metrics for top, right, bottom and left
\nWhere supported. Fires when an element is activated, for instance, through a mouse click or a keypress.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when an attribute has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when the character data has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Similar to HTML focus event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Similar to HTML blur event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node has been added as a child of another node.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node is being inserted into a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a descendant node of the element is removed.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node is being removed from a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when the subtree is modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an object/image is stopped from loading before completely loaded.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an element loses focus either via the pointing device or by tabbing navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a control loses the input focus and its value has been modified since gaining focus.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouse click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouse double click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an object/image/frame cannot be loaded properly.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an element receives focus either via the pointing device or by tab navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keydown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keypress is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keyup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the user agent finishes loading all content within the element. Only supported by window, frames,\nobjects and images.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mousedown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the mouse enters the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the mouse leaves the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mousemove is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseout is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseover is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\n\nThe target of the event.
\n\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a form is reset.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a document view is resized.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a document view is scrolled.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a user selects some text in a text field, including input and textarea.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a form is submitted.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the user agent removes all content from a window or frame. For elements, it fires when the target\nelement or any of its content has been removed.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\n