X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/output/Ext.Element.js diff --git a/docs/output/Ext.Element.js b/docs/output/Ext.Element.js new file mode 100644 index 00000000..8783cef2 --- /dev/null +++ b/docs/output/Ext.Element.js @@ -0,0 +1 @@ +Ext.data.JsonP.Ext_Element({"tagname":"class","html":"

Alternate names

Ext.core.Element

Files

Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.

\n\n

All instances of this class inherit the methods of Ext.fx.Anim making visual effects easily available to all\nDOM elements.

\n\n

Note 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\n

Usage:

\n\n
// by id\nvar el = Ext.get(\"my-div\");\n\n// by DOM element reference\nvar el = Ext.get(myDivElement);\n
\n\n

Animations

\n\n

When an element is manipulated, by default there is no animation.

\n\n
var el = Ext.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n
\n\n

Many 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\n

To 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\n
Option    Default   Description\n--------- --------  ---------------------------------------------\nduration  .35       The duration of the animation in seconds\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\n

Usage:

\n\n
// Element animation options object\nvar opt = {\n    duration: 1,\n    easing: 'elasticIn',\n    callback: this.foo,\n    scope: this\n};\n// animation with some options set\nel.setWidth(100, opt);\n
\n\n

The 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\n

Composite (Collections of) Elements

\n\n

For working with collections of Elements, see Ext.CompositeElement

\n

Properties

Defined By

Instance Properties

 

true to automatically adjust width and height settings for box-model issues (default to true)

\n

true to automatically adjust width and height settings for box-model issues (default to true)

\n
 

The default unit to append to CSS values where a unit isn't provided.

\n

The default unit to append to CSS values where a unit isn't provided.

\n
 

The DOM element

\n

The DOM element

\n
 

The DOM element ID

\n

The DOM element ID

\n
 

The element's default display mode

\n

The element's default display mode

\n
Defined By

Static Properties

Visibility mode constant for use with setVisibilityMode. ...

Visibility mode constant for use with setVisibilityMode. Use display to hide element

\n
Visibility mode constant for use with setVisibilityMode. ...

Visibility mode constant for use with setVisibilityMode. Use offsets (x and y positioning offscreen)\nto hide element.

\n
Visibility mode constant for use with setVisibilityMode. ...

Visibility mode constant for use with setVisibilityMode. Use visibility to hide element

\n
 

Defaults to 'x-hide-nosize'

\n

Defaults to 'x-hide-nosize'

\n

Methods

Defined By

Instance Methods

new( String/HTMLElement element, [Boolean forceNew] ) : Object
Creates new Element directly. ...

Creates new Element directly.

\n

Parameters

  • element : String/HTMLElement
    \n
  • forceNew : Boolean (optional)

    By 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).

    \n

Returns

Adds one or more CSS classes to the element. ...

Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.

\n

Parameters

  • className : String/String[]

    The CSS classes to add separated by space, or an array of classes

    \n

Returns

Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect) ...

Sets 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

Parameters

Returns

Sets up event handlers to add and remove a css class when this element has the focus ...

Sets up event handlers to add and remove a css class when this element has the focus

\n

Parameters

Returns

Sets up event handlers to add and remove a css class when the mouse is over this element ...

Sets up event handlers to add and remove a css class when the mouse is over this element

\n

Parameters

Returns

Convenience method for constructing a KeyMap ...

Convenience method for constructing a KeyMap

\n

Parameters

  • key : String/Number/Number[]/Object

    Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:\n{key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}

    \n
  • fn : Function

    The function to call

    \n
  • scope : Object (optional)

    The scope (this reference) in which the specified function is executed. Defaults to this Element.

    \n

Returns

Creates a KeyMap for this element ...

Creates a KeyMap for this element

\n

Parameters

Returns

Appends an event handler to this element. ...

Appends an event handler to this element.

\n

Parameters

  • eventName : String

    The name of event to handle.

    \n\n
  • fn : Function

    The handler function the event invokes. This function is passed the following parameters:

    \n\n\n\n\n
      \n
    • evt : EventObject

      \n\n

      The EventObject describing the event.

    • \n
    • el : HtmlElement

      \n\n

      The DOM element which was the target of the event. Note that this may be filtered by using the delegate option.

    • \n
    • o : Object

      \n\n

      The options object from the addListener call.

    • \n
    \n\n\n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties. This may contain any of\nthe following properties:

    \n\n\n\n\n
      \n
    • scope Object :

      \n\n

      The scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.

    • \n
    • delegate String:

      \n\n

      A simple selector to filter the target or look for a descendant of the target. See below for additional details.

    • \n
    • stopEvent Boolean:

      \n\n

      True to stop the event. That is stop propagation, and prevent the default action.

    • \n
    • preventDefault Boolean:

      \n\n

      True to prevent the default action

    • \n
    • stopPropagation Boolean:

      \n\n

      True to prevent event propagation

    • \n
    • normalized Boolean:

      \n\n

      False to pass a browser event to the handler function instead of an Ext.EventObject

    • \n
    • target Ext.Element:

      \n\n

      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.

    • \n
    • delay Number:

      \n\n

      The number of milliseconds to delay the invocation of the handler after the event fires.

    • \n
    • single Boolean:

      \n\n

      True to add a handler to handle just the next firing of the event, and then remove itself.

    • \n
    • buffer Number:

      \n\n

      Causes 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.

    • \n
    \n\n\n\n\n

    Combining Options

    \n\n\n\n\n

    In the following examples, the shorthand form on is used rather than the more verbose addListener. The\ntwo are equivalent. Using the options argument, it is possible to combine different types of listeners:

    \n\n\n\n\n

    A 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\n

    Code:

    \n\n\n\n\n
    el.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});\n
    \n\n\n\n\n

    Attaching multiple handlers in 1 call

    \n\n\n\n\n

    The 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\n

    Code:

    \n\n\n\n\n
    el.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\n

    Or a shorthand syntax:

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut,\n    scope: this\n});\n
    \n\n\n\n\n

    delegate

    \n\n\n\n\n

    This 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\n

Returns

TODO: Look at this ...

TODO: Look at this

\n

Parameters

( String/HTMLElement/Ext.Element element, [String position], [Number[] offsets], [Boolean/Object animate] ) : Ext.Element
Aligns this element with another element relative to the specified anchor points. ...

Aligns this element with another element relative to the specified anchor points. If the other element is the\ndocument it aligns it to the viewport.\nThe position parameter is optional, and can be specified in any one of the following formats:

\n\n
    \n
  • Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner (\"tl-bl\").
  • \n
  • One anchor (deprecated): The passed anchor position is used as the target element's anchor point.\n The element being aligned will position its top-left corner (tl) to that point. This method has been\n deprecated in favor of the newer two anchor syntax below.
  • \n
  • Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the\n element's anchor point, and the second value is used as the target's anchor point.
  • \n
\n\n\n

In addition to the anchor points, the position parameter also supports the \"?\" character. If \"?\" is passed at the end of\nthe position string, the element will attempt to align as specified, but the position will be adjusted to constrain to\nthe viewport if necessary. Note that the element being aligned might be swapped to align to a different position than\nthat specified in order to enforce the viewport constraints.\nFollowing are all of the supported anchor positions:

\n\n
Value  Description\n-----  -----------------------------\ntl     The top left corner (default)\nt      The center of the top edge\ntr     The top right corner\nl      The center of the left edge\nc      In the center of the element\nr      The center of the right edge\nbl     The bottom left corner\nb      The center of the bottom edge\nbr     The bottom right corner\n
\n\n\n

Example Usage:

\n\n
// align el to other-el using the default positioning (\"tl-bl\", non-constrained)\nel.alignTo(\"other-el\");\n\n// align the top left corner of el with the top right corner of other-el (constrained to viewport)\nel.alignTo(\"other-el\", \"tr?\");\n\n// align the bottom right corner of el with the center left edge of other-el\nel.alignTo(\"other-el\", \"br-l?\");\n\n// align the center of el with the bottom left corner of other-el and\n// adjust the x position by -6 pixels (and the y position by 0)\nel.alignTo(\"other-el\", \"c-bl\", [-6, 0]);\n
\n\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String (optional)

    The position to align to

    \n

    Defaults to: "tl-bl?"

  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

( String/HTMLElement/Ext.Element element, String position, [Number[] offsets], [Boolean/Object animate], [Boolean/Number monitorScroll], [Function callback] ) : Ext.Element
Anchors an element to another element and realigns it when the window is resized. ...

Anchors an element to another element and realigns it when the window is resized.

\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String

    The position to align to.

    \n
  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n
  • animate : Boolean/Object (optional)

    True for the default animation or a standard Element animation config object

    \n
  • monitorScroll : Boolean/Number (optional)

    True to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).

    \n
  • callback : Function (optional)

    The function to call after the animation finishes

    \n

Returns

Appends the passed element(s) to this element ...

Appends the passed element(s) to this element

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The id of the node, a DOM Node or an existing Element.

    \n

Returns

Appends this element to the passed element ...

Appends this element to the passed element

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The new parent element.\nThe id of the node, a DOM Node or an existing Element.

    \n

Returns

More flexible version of setStyle for setting style properties. ...

More flexible version of setStyle for setting style properties.

\n

Parameters

  • styles : String/Object/Function

    A style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.

    \n

Returns

Tries to blur the element. ...

Tries to blur the element. Any exceptions are caught and ignored.

\n

Returns

Wraps the specified element with a special 9 element markup/CSS block that renders by default as\na gray container wit...

Wraps 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\n\n

This special markup is used throughout Ext when box wrapping elements (Ext.button.Button,\nExt.panel.Panel when frame=true, Ext.window.Window). The markup\nis of this form:

\n\n\n
    Ext.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\n\n

Example usage:

\n\n\n
    // Basic box wrap\n    Ext.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.\n    Ext.get(\"foo\").boxWrap().addCls(\"x-box-blue\");\n
\n\n

Parameters

  • class : String (optional)

    A base CSS class to apply to the containing wrapper element\n(defaults to 'x-box'). Note that there are a number of CSS rules that are dependent on\nthis name to make the overall effect work, so if you supply an alternate base class, make sure you\nalso supply all of the necessary rules.

    \n

Returns

  • Ext.Element

    The outermost wrapping element of the created box structure.

    \n
Centers the Element in either the viewport, or another Element. ...

Centers the Element in either the viewport, or another Element.

\n

Parameters

  • centerIn : String/HTMLElement/Ext.Element (optional)

    The element in which to center the element.

    \n
( String selector, [Boolean returnDom] ) : HTMLElement/Ext.Element
Selects a single direct child based on the passed CSS selector (the selector should not contain an id). ...

Selects a single direct child based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n
  • returnDom : Boolean (optional)

    True to return the DOM node instead of Ext.Element (defaults to false)

    \n

Returns

Removes Empty, or whitespace filled text nodes. ...

Removes Empty, or whitespace filled text nodes. Combines adjacent text nodes.

\n

Parameters

  • forceReclean : Boolean (optional)

    By default the element\nkeeps track if it has been cleaned already so\nyou can call this over and over. However, if you update the element and\nneed to force a reclean, you can pass true.

    \n
Alias for removeAllListeners. ...

Alias for removeAllListeners.

\n\n

Removes all previous added listeners from this element

\n

Returns

Clears any opacity settings from this element. ...

Clears any opacity settings from this element. Required in some cases for IE.

\n

Returns

Clear positioning back to the default when the document was loaded ...

Clear positioning back to the default when the document was loaded

\n

Parameters

  • value : String (optional)

    The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.

    \n

Returns

Store the current overflow setting and clip overflow on the element - use unclip to remove ...

Store the current overflow setting and clip overflow on the element - use unclip to remove

\n

Returns

Returns true if this element is an ancestor of the passed element ...

Returns true if this element is an ancestor of the passed element

\n

Parameters

  • el : HTMLElement/String

    The element to check

    \n

Returns

  • Boolean

    True if this element is an ancestor of el, else false

    \n
( Object config, [HTMLElement insertBefore], [Boolean returnDom] ) : Ext.Element
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...

Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.

\n

Parameters

  • config : Object

    DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.

    \n
  • insertBefore : HTMLElement (optional)

    a child element of this element

    \n
  • returnDom : Boolean (optional)

    true to return the dom node instead of creating an Element

    \n

Returns

( String/Object config, [String/HTMLElement renderTo], [Boolean matchBox] ) : Ext.Element
Creates a proxy element of this element ...

Creates a proxy element of this element

\n

Parameters

  • config : String/Object

    The class name of the proxy element or a DomHelper config object

    \n
  • renderTo : String/HTMLElement (optional)

    The element or element id to render the proxy to (defaults to document.body)

    \n
  • matchBox : Boolean (optional)

    True to align and size the proxy to this element now.

    \n

    Defaults to: false

Returns

Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through. ...

Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.

\n

Returns

Removes this element's dom reference. ...

Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode. Alias to remove.

\n
( String selector, [Boolean returnDom] ) : HTMLElement/Ext.Element
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont...

Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n
  • returnDom : Boolean (optional)

    True to return the DOM node instead of Ext.Element (defaults to false)

    \n

Returns

Convenience method for setVisibilityMode(Element.DISPLAY) ...

Convenience method for setVisibilityMode(Element.DISPLAY)

\n

Parameters

  • display : String (optional)

    What to set display to when visible

    \n

Returns

Fade an element in (from transparent to opaque). ...

Fade an element in (from transparent to opaque). The ending opacity can be specified using the opacity\nconfig option. Usage:

\n\n
// 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

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Fade an element out (from opaque to transparent). ...

Fade 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:

\n\n
// 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

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

( String selector, [Number/String/HTMLElement/Ext.Element maxDepth], [Boolean returnEl] ) : HTMLElement
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. ...

Looks 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

Parameters

  • selector : String

    The simple selector to test

    \n
  • maxDepth : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or element (defaults to 50 || document.body)

    \n
  • returnEl : Boolean (optional)

    True to return a Ext.Element object instead of DOM node

    \n

Returns

  • HTMLElement

    The matching DOM node (or null if no match was found)

    \n
( String selector, [Number/String/HTMLElement/Ext.Element maxDepth], [Boolean returnEl] ) : HTMLElement
Looks at parent nodes for a match of the passed simple selector (e.g. ...

Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • selector : String

    The simple selector to test

    \n
  • maxDepth : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or element (defaults to 10 || document.body)

    \n
  • returnEl : Boolean (optional)

    True to return a Ext.Element object instead of DOM node

    \n

Returns

  • HTMLElement

    The matching DOM node (or null if no match was found)

    \n
( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElement
Gets the first child, skipping text nodes ...

Gets the first child, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the next sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.Element

    \n

Returns

Tries to focus the element. ...

Tries to focus the element. Any exceptions are caught and ignored.

\n

Parameters

  • defer : Number (optional)

    Milliseconds to defer the focus

    \n

Returns

Checks whether this element can be focused. ...

Checks whether this element can be focused.

\n

Returns

  • Boolean

    True if the element is focusable

    \n
Shows a ripple of exploding, attenuating borders to draw attention to an Element. ...

Shows 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: 3 });\n\n// common config options shown with default values\nel.frame(\"#C3DAF9\", 1, {\n    duration: 1 //duration of each individual ripple.\n    // Note: Easing is not configurable and will be ignored if included\n});\n
\n

Parameters

  • color : String (optional)

    The color of the border. Should be a 6 char hex color without the leading #\n(defaults to light blue).

    \n

    Defaults to: "C3DAF9"

  • count : Number (optional)

    The number of ripples to display

    \n

    Defaults to: 1

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Returns the active element in the DOM. ...

Returns 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

Returns

  • HTMLElement

    The active (focused) element in the document.

    \n
( String/HTMLElement/Ext.Element element, [String position], [Number[] offsets] ) : Number[]
Gets the x,y coordinates to align this element with another element. ...

Gets the x,y coordinates to align this element with another element. See alignTo for more info on the\nsupported position values.

\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String (optional)

    The position to align to (defaults to )

    \n

    Defaults to: "tl-bl?"

  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n

Returns

Gets the x,y coordinates specified by the anchor position on the element. ...

Gets the x,y coordinates specified by the anchor position on the element.

\n

Parameters

  • anchor : String (optional)

    The specified anchor position. See alignTo\nfor details on supported anchor positions.

    \n

    Defaults to: "c"

  • local : Boolean (optional)

    True to get the local (element top/left-relative) anchor position instead\nof page coordinates

    \n
  • size : Object (optional)

    An object containing the size to use for calculating anchor position\n{width: (target width), height: (target height)} (defaults to the element's current size)

    \n

Returns

  • Number[]

    [x, y] An array containing the element's x and y coordinates

    \n
Returns the value of an attribute from the element's underlying DOM node. ...

Returns the value of an attribute from the element's underlying DOM node.

\n

Parameters

  • name : String

    The attribute name

    \n
  • namespace : String (optional)

    The namespace in which to look for the attribute

    \n

Returns

Returns the value of a namespaced attribute from the element's underlying DOM node. ...

Returns the value of a namespaced attribute from the element's underlying DOM node.

\n

Parameters

  • namespace : String

    The namespace in which to look for the attribute

    \n
  • name : String

    The attribute name

    \n

Returns

Gets the width of the border(s) for the specified side(s) ...

Gets the width of the border(s) for the specified side(s)

\n

Parameters

  • side : String

    Can 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.

    \n

Returns

  • Number

    The width of the sides passed added together

    \n
Gets the bottom Y coordinate of the element (element Y position + element height) ...

Gets the bottom Y coordinate of the element (element Y position + element height)

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/locati...

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/location to match this element.

\n

Parameters

  • contentBox : Boolean (optional)

    If true a box for the content of the element is returned.

    \n
  • local : Boolean (optional)

    If true the element's left and top are returned instead of page x/y.

    \n

Returns

  • Object

    box An object in the format

    \n\n
    {\n    x: <Element's X position>,\n    y: <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\n\n

    The returned object may also be addressed as an Array where index 0 contains the X position\nand index 1 contains the Y position. So the result may also be used for setXY

    \n
Retrieves Ext.Element objects like Ext.get but is optimized for sub-elements. ...

Retrieves Ext.Element objects like Ext.get but is optimized for sub-elements.\nThis is helpful for performance, because in IE (prior to IE 9), getElementById uses\nan non-optimized search. In those browsers, starting the search for an element with a\nmatching ID at a parent of that element will greatly speed up the process.

\n\n

Unlike Ext.get, this method only accepts ID's. If the ID is not a child of\nthis element, it will still be found if it exists in the document, but will be slower\nthan calling Ext.get directly.

\n

Parameters

  • id : String

    The id of the element to get.

    \n

Returns

  • Ext.Element

    The Element object (or null if no matching element was found)

    \n
Calculates the x, y to center this element on the screen ...

Calculates the x, y to center this element on the screen

\n

Returns

  • Number[]

    The x, y values [x, y]

    \n
( String attr, String defaultValue, [String prefix] )
Return the CSS color for the specified CSS attribute. ...

Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values\nare convert to standard 6 digit hex color.

\n

Parameters

  • attr : String

    The css attribute

    \n
  • defaultValue : String

    The default value to use when a valid color isn't found

    \n
  • prefix : String (optional)

    defaults to #. Use an empty string when working with\ncolor anims.

    \n
Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen...

Returns 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

Returns

Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen ne...

Returns 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

Returns

Returns the [X, Y] vector by which this element must be translated to make a best attempt\nto constrain within the pas...

Returns the [X, Y] vector by which this element must be translated to make a best attempt\nto constrain within the passed constraint. Returns false is this element does not need to be moved.

\n\n\n

Priority is given to constraining the top and left within the constraint.

\n\n\n

The constraint may either be an existing element into which this element is to be constrained, or\nan Region into which this element is to be constrained.

\n\n

Parameters

  • constrainTo : Object

    {Mixed} The Element or Region into which this element is to be constrained.

    \n
  • proposedPosition : Object

    {Array} A proposed [X, Y] position to test for validity and to produce a vector for instead\nof using this Element's current position;

    \n

Returns

  • Number[]/Boolean

    If this element needs to be translated, an [X, Y]\nvector by which this element must be translated. Otherwise, false.

    \n
Returns the sum width of the padding and borders for the passed \"sides\". ...

Returns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()

\n\n
     for more information about the sides.\n
\n

Parameters

Returns

Returns the offset height of the element ...

Returns the offset height of the element

\n

Parameters

  • contentHeight : Boolean (optional)

    true to get the height minus borders and padding

    \n

Returns

Gets the left X coordinate ...

Gets the left X coordinate

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Gets this element's ElementLoader ...

Gets this element's ElementLoader

\n

Returns

Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i...

Returns 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

Parameters

  • sides : String (optional)

    Any combination of l, r, t, b to get the sum of those sides

    \n

Returns

Returns the offsets of this element from the passed element. ...

Returns the offsets of this element from the passed element. Both element must be part of the DOM tree and not have display:none to have page coordinates.

\n

Parameters

Returns

  • Number[]

    The XY page offsets (e.g. [100, -200])

    \n
Gets the width of the padding(s) for the specified side(s) ...

Gets the width of the padding(s) for the specified side(s)

\n

Parameters

  • side : String

    Can 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.

    \n

Returns

  • Number

    The padding of the sides passed added together

    \n
Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/locati...

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/location to match this element.

\n

Parameters

Returns

  • Object

    box An object in the format

    \n\n
    {\n    x: <Element's X position>,\n    y: <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\n\n

    The returned object may also be addressed as an Array where index 0 contains the X position\nand index 1 contains the Y position. So the result may also be used for setXY

    \n
Gets an object with all CSS positioning properties. ...

Gets an object with all CSS positioning properties. Useful along with setPostioning to get\nsnapshot before performing an update and then restoring the element.

\n

Returns

Returns the region of this element. ...

Returns the region of this element.\nThe element must be part of the DOM tree to have a region (display:none or elements not appended return false).

\n

Returns

  • Ext.util.Region

    A Region containing \"top, left, bottom, right\" member data.

    \n
Gets the right X coordinate of the element (element X position + element width) ...

Gets the right X coordinate of the element (element X position + element width)

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

( ) : HTMLElementprotected
Gets the parent node of the current element taking into account Ext.scopeResetCSS ...

Gets the parent node of the current element taking into account Ext.scopeResetCSS

\n

Returns

  • HTMLElement

    The parent element

    \n
Returns the current scroll position of the element. ...

Returns the current scroll position of the element.

\n

Returns

  • Object

    An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}

    \n
Returns the size of the element. ...

Returns the size of the element.

\n

Parameters

  • contentSize : Boolean (optional)

    true to get the width/size minus borders and padding

    \n

Returns

  • Object

    An object containing the element's size {width: (element width), height: (element height)}

    \n
Normalizes currentStyle and computedStyle. ...

Normalizes currentStyle and computedStyle.

\n

Parameters

  • property : String

    The style property whose value is returned.

    \n

Returns

  • String

    The current value of the style property for this element.

    \n
Returns the dimensions of the element available to lay content out in. ...

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 offsetWidth/clientWidth.\nTo 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\n

Returns an object with properties matching the styles requested. ...

Returns an object with properties matching the styles requested.\nFor example, el.getStyles('color', 'font-size', 'width') might return\n{'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}.

\n

Parameters

Returns

Returns the width in pixels of the passed text, or the width of the text in this Element. ...

Returns the width in pixels of the passed text, or the width of the text in this Element.

\n

Parameters

  • text : String

    The text to measure. Defaults to the innerHTML of the element.

    \n
  • min : Number (optional)

    The minumum value to return.

    \n
  • max : Number (optional)

    The maximum value to return.

    \n

Returns

  • Number

    The text width in pixels.

    \n
Gets the top Y coordinate ...

Gets the top Y coordinate

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Returns the value of the \"value\" attribute ...

Returns the value of the \"value\" attribute

\n

Parameters

  • asNumber : Boolean

    true to parse the value as a number

    \n

Returns

Returns the content region of this element. ...

Returns the content region of this element. That is the region within the borders and padding.

\n

Returns

  • Ext.util.Region

    A Region containing \"top, left, bottom, right\" member data.

    \n
Returns the dimensions of the element available to lay content out in. ...

Returns the dimensions of the element available to lay content out in.

\n

If the element (or any ancestor element) has CSS style display : none, the dimensions will be zero.

\nexample:\n
        var vpSize = Ext.getBody().getViewSize();\n\n        // all Windows created afterwards will have a default value of 90% height and 95% width\n        Ext.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\n
Returns the offset width of the element ...

Returns the offset width of the element

\n

Parameters

  • contentWidth : Boolean (optional)

    true to get the width minus borders and padding

    \n

Returns

Gets the current X position of the element based on page coordinates. ...

Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Returns

  • Number

    The X position of the element

    \n
Gets the current position of the element based on page coordinates. ...

Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Returns

  • Number[]

    The XY position of the element

    \n
Gets the current Y position of the element based on page coordinates. ...

Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Returns

  • Number

    The Y position of the element

    \n
Slides the element while fading it out of view. ...

Slides 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

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions

    \n

    Defaults to: "b"

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Checks if the specified CSS class exists on this element's DOM node. ...

Checks if the specified CSS class exists on this element's DOM node.

\n

Parameters

  • className : String

    The CSS class to check for

    \n

Returns

  • Boolean

    True if the class exists, else false

    \n
Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". ...

Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.

\n

Parameters

  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Highlights the Element by setting a color (applies to the background-color by default, but can be changed using\nthe \"...

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

Parameters

  • color : String (optional)

    The highlight color. Should be a 6 char hex color without the leading #

    \n

    Defaults to: "ffff9c"

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

( Function overFn, Function outFn, [Object scope], [Object options] ) : Ext.Element
Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. ...

Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element.

\n

Parameters

  • overFn : Function

    The function to call when the mouse enters the Element.

    \n
  • outFn : Function

    The function to call when the mouse leaves the Element.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the functions are executed. Defaults\nto the Element's DOM element.

    \n
  • options : Object (optional)

    Options for the listener. See the\noptions parameter.

    \n

Returns

Initializes a Ext.dd.DD drag drop object for this element. ...

Initializes a Ext.dd.DD drag drop object for this element.

\n

Parameters

  • group : String

    The group the DD object is member of

    \n
  • config : Object

    The DD config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DD object

    \n

Returns

Initializes a Ext.dd.DDProxy object for this element. ...

Initializes a Ext.dd.DDProxy object for this element.

\n

Parameters

  • group : String

    The group the DDProxy object is member of

    \n
  • config : Object

    The DDProxy config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DDProxy object

    \n

Returns

Initializes a Ext.dd.DDTarget object for this element. ...

Initializes a Ext.dd.DDTarget object for this element.

\n

Parameters

  • group : String

    The group the DDTarget object is member of

    \n
  • config : Object

    The DDTarget config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DDTarget object

    \n

Returns

Inserts this element after the passed element in the DOM ...

Inserts this element after the passed element in the DOM

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The element to insert after.\nThe id of the node, a DOM Node or an existing Element.

    \n

Returns

Inserts this element before the passed element in the DOM ...

Inserts this element before the passed element in the DOM

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The element before which this element will be inserted.\nThe id of the node, a DOM Node or an existing Element.

    \n

Returns

Inserts (or creates) an element (or DomHelper config) as the first child of this element ...

Inserts (or creates) an element (or DomHelper config) as the first child of this element

\n

Parameters

  • el : String/HTMLElement/Ext.Element/Object

    The id or element to insert or a DomHelper config\nto create and insert

    \n

Returns

( String where, String html, [Boolean returnEl] ) : HTMLElement/Ext.Element
Inserts an html fragment into this element ...

Inserts an html fragment into this element

\n

Parameters

  • where : String

    Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.\nSee Ext.DomHelper.insertHtml for details.

    \n
  • html : String

    The HTML fragment

    \n
  • returnEl : Boolean (optional)

    True to return an Ext.Element (defaults to false)

    \n

Returns

  • HTMLElement/Ext.Element

    The inserted node (or nearest related if more than 1 inserted)

    \n
Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element ...

Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element

\n

Parameters

  • el : String/HTMLElement/Ext.Element/Object/Array

    The id, element to insert or a DomHelper config\nto create and insert or an array of any of those.

    \n
  • where : String (optional)

    'before' or 'after' defaults to before

    \n
  • returnDom : Boolean (optional)

    True to return the .;ll;l,raw DOM element instead of Ext.Element

    \n

Returns

  • Ext.Element

    The inserted Element. If an array is passed, the last inserted element is returned.

    \n
Returns true if this element matches the passed simple selector (e.g. ...

Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • selector : String

    The simple selector to test

    \n

Returns

  • Boolean

    True if this element matches the selector, else false

    \n
Tests various css rules/browsers to determine if this element uses a border box ...

Tests various css rules/browsers to determine if this element uses a border box

\n

Returns

Returns true if display is not \"none\" ...

Returns true if display is not \"none\"

\n

Returns

Returns true if this element is masked. ...

Returns true if this element is masked. Also re-centers any displayed message within the mask.

\n

Returns

Returns true if this element is scrollable. ...

Returns true if this element is scrollable.

\n

Returns

Checks whether the element is currently visible using both visibility and display properties. ...

Checks whether the element is currently visible using both visibility and display properties.

\n

Returns

  • Boolean

    True if the element is currently visible, else false

    \n
( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElement
Gets the last child, skipping text nodes ...

Gets the last child, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the previous sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.Element

    \n

Returns

Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. ...

Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object\nparameter as Ext.ElementLoader.load

\n

Parameters

Returns

Puts a mask over this element to disable user interaction. ...

Puts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.

\n

Parameters

  • msg : String (optional)

    A message to display in the mask

    \n
  • msgCls : String (optional)

    A css class to apply to the msg element

    \n

Returns

Monitors this Element for the mouse leaving. ...

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.

\n

Parameters

  • delay : Number

    The delay in milliseconds to wait for possible mouse re-entry before calling the handler function.

    \n
  • handler : Function

    The function to call if the mouse remains outside of this Element for the specified time.

    \n
  • scope : Object

    The scope (this reference) in which the handler function executes. Defaults to this Element.

    \n

Returns

  • Object

    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    
    \n\n
( String direction, Number distance, [Boolean/Object animate] )
Move this element relative to its current position. ...

Move this element relative to its current position.

\n

Parameters

  • direction : String

    Possible values are: \"l\" (or \"left\"), \"r\" (or \"right\"), \"t\" (or \"top\", or \"up\"), \"b\" (or \"bottom\", or \"down\").

    \n
  • distance : Number

    How far to move the element in pixels

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n
Sets the position of the element in page coordinates, regardless of how the element is positioned. ...

Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElement
Gets the next sibling, skipping text nodes ...

Gets the next sibling, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the next sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.Element

    \n

Returns

( String eventName, Function fn, [Object scope], [Object options] ) : Ext.Element
Shorthand for addListener. ...

Shorthand for addListener.

\n\n

Appends an event handler to this element.

\n

Parameters

  • eventName : String

    The name of event to handle.

    \n\n
  • fn : Function

    The handler function the event invokes. This function is passed the following parameters:

    \n\n\n\n\n
      \n
    • evt : EventObject

      \n\n

      The EventObject describing the event.

    • \n
    • el : HtmlElement

      \n\n

      The DOM element which was the target of the event. Note that this may be filtered by using the delegate option.

    • \n
    • o : Object

      \n\n

      The options object from the addListener call.

    • \n
    \n\n\n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties. This may contain any of\nthe following properties:

    \n\n\n\n\n
      \n
    • scope Object :

      \n\n

      The scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.

    • \n
    • delegate String:

      \n\n

      A simple selector to filter the target or look for a descendant of the target. See below for additional details.

    • \n
    • stopEvent Boolean:

      \n\n

      True to stop the event. That is stop propagation, and prevent the default action.

    • \n
    • preventDefault Boolean:

      \n\n

      True to prevent the default action

    • \n
    • stopPropagation Boolean:

      \n\n

      True to prevent event propagation

    • \n
    • normalized Boolean:

      \n\n

      False to pass a browser event to the handler function instead of an Ext.EventObject

    • \n
    • target Ext.Element:

      \n\n

      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.

    • \n
    • delay Number:

      \n\n

      The number of milliseconds to delay the invocation of the handler after the event fires.

    • \n
    • single Boolean:

      \n\n

      True to add a handler to handle just the next firing of the event, and then remove itself.

    • \n
    • buffer Number:

      \n\n

      Causes 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.

    • \n
    \n\n\n\n\n

    Combining Options

    \n\n\n\n\n

    In the following examples, the shorthand form on is used rather than the more verbose addListener. The\ntwo are equivalent. Using the options argument, it is possible to combine different types of listeners:

    \n\n\n\n\n

    A 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\n

    Code:

    \n\n\n\n\n
    el.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});\n
    \n\n\n\n\n

    Attaching multiple handlers in 1 call

    \n\n\n\n\n

    The 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\n

    Code:

    \n\n\n\n\n
    el.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\n

    Or a shorthand syntax:

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut,\n    scope: this\n});\n
    \n\n\n\n\n

    delegate

    \n\n\n\n\n

    This 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\n

Returns

( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElement
Gets the parent node for this element, optionally chaining up trying to match a selector ...

Gets the parent node for this element, optionally chaining up trying to match a selector

\n

Parameters

  • selector : String (optional)

    Find a parent node that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.Element

    \n

Returns

Creates a pause before any subsequent queued effects begin. ...

Creates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will\nhave no effect. Usage:

\n\n
el.pause(1);\n
\n

This method has been deprecated since 4.0

\n

Parameters

  • seconds : Number

    The length of time to pause (in seconds)

    \n

Returns

Initializes positioning on this element. ...

Initializes positioning on this element. If a desired position is not passed, it will make the\nthe element positioned relative IF it is not already positioned.

\n

Parameters

  • pos : String (optional)

    Positioning to use \"relative\", \"absolute\" or \"fixed\"

    \n
  • zIndex : Number (optional)

    The zIndex to apply

    \n
  • x : Number (optional)

    Set the page X position

    \n
  • y : Number (optional)

    Set the page Y position

    \n
( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElement
Gets the previous sibling, skipping text nodes ...

Gets the previous sibling, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the previous sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.Element

    \n

Returns

Fades the element out while slowly expanding it in all directions. ...

Fades 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

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Recursively removes all previous added listeners from this element and its children ...

Recursively removes all previous added listeners from this element and its children

\n

Returns

( String selector ) : HTMLElement[]
Selects child nodes based on the passed CSS selector (the selector should not contain an id). ...

Selects child nodes based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n

Returns

  • HTMLElement[]

    An array of the matched nodes

    \n
Adds one or more CSS classes to this element and removes the same class(es) from all siblings. ...

Adds one or more CSS classes to this element and removes the same class(es) from all siblings.

\n

Parameters

  • className : String/String[]

    The CSS class to add, or an array of classes

    \n

Returns

Create an event handler on this element such that when the event fires and is handled by this element,\nit will be rel...

Create 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).

\n

Parameters

  • eventName : String

    The type of event to relay

    \n
  • object : Object

    Any object that extends Ext.util.Observable that will provide the context\nfor firing the relayed event

    \n
Removes this element's dom reference. ...

Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode

\n
Removes all previous added listeners from this element ...

Removes all previous added listeners from this element

\n

Returns

Remove any anchor to this element. ...

Remove any anchor to this element. See anchorTo.

\n

Returns

Removes one or more CSS classes from the element. ...

Removes one or more CSS classes from the element.

\n

Parameters

  • className : String/String[]

    The CSS classes to remove separated by space, or an array of classes

    \n

Returns

Removes an event handler from this element. ...

Removes an event handler from this element.

\n\n

Note: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.

\n\n

Example:

\n\n
el.removeListener('click', this.handlerFn);\n// or\nel.un('click', this.handlerFn);\n
\n

Parameters

  • eventName : String

    The name of the event from which to remove the handler.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed into the\naddListener call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.

    \n\n

Returns

Forces the browser to repaint this element ...

Forces the browser to repaint this element

\n

Returns

Replaces the passed element with this element ...

Replaces the passed element with this element

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The element to replace.\nThe id of the node, a DOM Node or an existing Element.

    \n

Returns

Replaces a CSS class on the element with another. ...

Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.

\n

Parameters

  • oldClassName : String

    The CSS class to replace

    \n
  • newClassName : String

    The replacement CSS class

    \n

Returns

Replaces this element with the passed element ...

Replaces this element with the passed element

\n

Parameters

  • el : String/HTMLElement/Ext.Element/Object

    The new element (id of the node, a DOM Node\nor an existing Element) or a DomHelper config of an element to create

    \n

Returns

( Number width, Number height, [Object options] ) : Ext.Elementdeprecated
Animates the transition of an element's dimensions from a starting height/width to an ending height/width. ...

Animates 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: .35\n    }\n);\n
\n

This method has been deprecated since 4.0

\n

Parameters

  • width : Number

    The new width (pass undefined to keep the original width)

    \n
  • height : Number

    The new height (pass undefined to keep the original height)

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

( String direction, Number distance, [Boolean/Object animate] ) : Boolean
Scrolls this element the specified direction. ...

Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.

\n

Parameters

  • direction : String

    Possible values are: \"l\" (or \"left\"), \"r\" (or \"right\"), \"t\" (or \"top\", or \"up\"), \"b\" (or \"bottom\", or \"down\").

    \n
  • distance : Number

    How far to scroll the element in pixels

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

  • Boolean

    Returns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go.

    \n
Scrolls this element into view within the passed container. ...

Scrolls this element into view within the passed container.

\n

Parameters

  • container : String/HTMLElement/Ext.Element (optional)

    The container element to scroll (defaults to document.body). Should be a\nstring (id), dom node, or Ext.Element.

    \n
  • hscroll : Boolean (optional)

    False to disable horizontal scroll (defaults to true)

    \n

Returns

Scrolls this element the specified scroll point. ...

Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll().

\n

Parameters

  • side : String

    Either \"left\" for scrollLeft values or \"top\" for scrollTop values.

    \n
  • value : Number

    The new scroll value

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id). ...

Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n

Returns

Enable text selection for this element (normalized across browsers) ...

Enable text selection for this element (normalized across browsers)

\n

Returns

Serializes a DOM form into a url encoded string ...

Serializes a DOM form into a url encoded string

\n

Parameters

Returns

Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) ...

Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)

\n

Parameters

  • o : Object

    The object with the attributes

    \n
  • useSet : Boolean (optional)

    false to override the default setAttribute to use expandos.

    \n

Returns

Sets the element's CSS bottom style. ...

Sets the element's CSS bottom style.

\n

Parameters

  • bottom : String

    The bottom CSS property value

    \n

Returns

Sets the element's position and size in one shot. ...

Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • width : Number/String

    The new width. This may be one of:

      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels)
    • \n
    • A String used to set the CSS width style. Animation may not be used.\n

    \n
  • height : Number/String

    The new height. This may be one of:

      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels)
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the element's box. ...

Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently.

\n

Parameters

  • box : Object

    The box to fill {x, y, width, height}

    \n
  • adjust : Boolean (optional)

    Whether to adjust for box-model issues automatically

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the CSS display property. ...

Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.

\n

Parameters

  • value : Boolean/String

    Boolean value to display the element using its default display, or a string to set the display directly.

    \n

Returns

Set the height of this Element. ...

Set 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 : .5, // animation will have a duration of .5 seconds\n    // will change the content to \"finished\"\n    callback: function(){ this.update(\"finished\"); }\n});\n
\n\n

Parameters

  • height : Number/String

    The new height. This may be one of:

      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels.)
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the element's left position directly using CSS style (instead of setX). ...

Sets the element's left position directly using CSS style (instead of setX).

\n

Parameters

  • left : String

    The left CSS property value

    \n

Returns

Quick set left and top adding default units ...

Quick set left and top adding default units

\n

Parameters

  • left : String

    The left CSS property value

    \n
  • top : String

    The top CSS property value

    \n

Returns

Sets the position of the element in page coordinates, regardless of how the element is positioned. ...

Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Set the opacity of the element ...

Set the opacity of the element

\n

Parameters

  • opacity : Number

    The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc

    \n
  • animate : Boolean/Object (optional)

    a standard Element animation config object or true for\nthe default animation ({duration: .35, easing: 'easeIn'})

    \n

Returns

Set positioning with an object returned by getPositioning(). ...

Set positioning with an object returned by getPositioning().

\n

Parameters

Returns

Sets the element's position and size the specified region. ...

Sets the element's position and size the specified region. If animation is true then width, height, x and y will be animated concurrently.

\n

Parameters

  • region : Ext.util.Region

    The region to fill

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the element's CSS right style. ...

Sets the element's CSS right style.

\n

Parameters

  • right : String

    The right CSS property value

    \n

Returns

Set the size of this Element. ...

Set the size of this Element. If animation is true, both width and height will be animated concurrently.

\n

Parameters

  • width : Number/String

    The new width. This may be one of:

      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS width style. Animation may not be used.\n
    • A size object in the format {width: widthValue, height: heightValue}.
    • \n

    \n
  • height : Number/String

    The new height. This may be one of:

      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Wrapper for setting style properties, also takes single object parameter of multiple styles. ...

Wrapper for setting style properties, also takes single object parameter of multiple styles.

\n

Parameters

  • property : String/Object

    The style property to be set, or an object of multiple styles.

    \n
  • value : String (optional)

    The value to apply to the given property, or null if an object was passed.

    \n

Returns

Sets the element's top position directly using CSS style (instead of setY). ...

Sets the element's top position directly using CSS style (instead of setY).

\n

Parameters

  • top : String

    The top CSS property value

    \n

Returns

Sets the element's visibility mode. ...

Sets the element's visibility mode. When setVisible() is called it\nwill use this to determine whether to set the visibility or the display property.

\n

Parameters

  • visMode : Number

    Ext.Element.VISIBILITY or Ext.Element.DISPLAY

    \n

Returns

Sets the visibility of the element (see details). ...

Sets 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

Parameters

  • visible : Boolean

    Whether the element is visible

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Set the width of this Element. ...

Set the width of this Element.

\n

Parameters

  • width : Number/String

    The new width. This may be one of:

      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS width style. Animation may not be used.\n

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the X position of the element based on page coordinates. ...

Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • The : Number

    X position of the element

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Sets the position of the element in page coordinates, regardless of how the element is positioned. ...

Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • pos : Number[]

    Contains X & Y [x, y] values for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Sets the Y position of the element based on page coordinates. ...

Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • The : Number

    Y position of the element

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Animates the transition of any combination of an element's dimensions, xy position and/or opacity. ...

Animates 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: .35\n});\n
\n

This method has been deprecated since 4.0

\n

Parameters

  • options : Object

    Object literal with any of the Fx config options

    \n

Returns

Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". ...

Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.

\n

Parameters

  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Slides the element into view. ...

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\nFx 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

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions

    \n

    Defaults to: "t"

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Slides the element out of view. ...

Slides 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\nFx 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

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions

    \n

    Defaults to: "t"

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Stops the specified event(s) from bubbling and optionally prevents the default action ...

Stops the specified event(s) from bubbling and optionally prevents the default action

\n

Parameters

  • eventName : String/String[]

    an event / array of events to stop from bubbling

    \n
  • preventDefault : Boolean (optional)

    true to prevent the default action too

    \n

Returns

Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). ...

Blinks 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

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Toggles the element's visibility or display, depending on visibility mode. ...

Toggles the element's visibility or display, depending on visibility mode.

\n

Parameters

  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). ...

Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).

\n

Parameters

  • className : String

    The CSS class to toggle

    \n

Returns

Translates the passed page coordinates into left/top css values for this element ...

Translates the passed page coordinates into left/top css values for this element

\n

Parameters

  • x : Number/Number[]

    The page x or an array containing [x, y]

    \n
  • y : Number (optional)

    The page y, required if x is not an array

    \n

Returns

  • Object

    An object with left and top properties. e.g. {left: (value), top: (value)}

    \n
Shorthand for removeListener. ...

Shorthand for removeListener.

\n\n

Removes an event handler from this element.

\n\n

Note: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.

\n\n

Example:

\n\n
el.removeListener('click', this.handlerFn);\n// or\nel.un('click', this.handlerFn);\n
\n

Parameters

  • eventName : String

    The name of the event from which to remove the handler.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed into the\naddListener call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.

    \n\n

Returns

Return clipping (overflow) to original clipping before clip was called ...

Return clipping (overflow) to original clipping before clip was called

\n

Returns

Removes a previously applied mask. ...

Removes a previously applied mask.

\n
Disables text selection for this element (normalized across browsers) ...

Disables text selection for this element (normalized across browsers)

\n

Returns

( String selector, [Number/String/HTMLElement/Ext.Element maxDepth] ) : Ext.Element
Walks up the dom looking for a parent node that matches the passed simple selector (e.g. ...

Walks 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.Element.

\n

Parameters

  • selector : String

    The simple selector to test

    \n
  • maxDepth : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or element (defaults to 10 || document.body)

    \n

Returns

  • Ext.Element

    The matching DOM node (or null if no match was found)

    \n
Update the innerHTML of this element ...

Update the innerHTML of this element

\n

Parameters

Returns

( [Object config], [Boolean returnDom] ) : HTMLElement/Ext.Element
Creates and wraps this element with another element ...

Creates and wraps this element with another element

\n

Parameters

  • config : Object (optional)

    DomHelper element config object for the wrapper element or null for an empty div

    \n
  • returnDom : Boolean (optional)

    True to return the raw DOM element instead of Ext.Element

    \n

Returns

  • HTMLElement/Ext.Element

    The newly created wrapper element

    \n
Defined By

Static Methods

( String/HTMLElement el, [String named] ) : Ext.Elementstatic
Gets the globally shared flyweight Element, with the passed node as the active element. ...

Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference\nto this element - the dom node can be overwritten by other code. Ext.fly is alias for\nfly.

\n\n

Use this to make one-time references to DOM elements which are not going to be accessed again either by\napplication 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\nclass.

\n

Parameters

  • el : String/HTMLElement

    The dom node or id

    \n
  • named : String (optional)

    Allows for creation of named reusable flyweights to prevent conflicts (e.g.\ninternally Ext uses \"_global\")

    \n

Returns

  • Ext.Element

    The shared Element object (or null if no matching element was found)

    \n
Returns the top Element that is located at the passed coordinates ...

Returns the top Element that is located at the passed coordinates

\n

Parameters

Returns

Retrieves Ext.Element objects. ...

Retrieves Ext.Element objects. Ext.get is an alias for get.

\n\n

This method does not retrieve Components. This method retrieves Ext.Element\nobjects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentManager.get.

\n\n

Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with\nthe same id via AJAX or DOM.

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The id of the node, a DOM Node or an existing Element.

    \n

Returns

  • Ext.Element

    The Element object (or null if no matching element was found)

    \n
Retrieves the document height ...

Retrieves the document height

\n

Returns

Retrieves the document width ...

Retrieves the document width

\n

Returns

Retrieves the current orientation of the window. ...

Retrieves the current orientation of the window. This is calculated by\ndeterming if the height is greater than the width.

\n

Returns

  • String

    Orientation of window: 'portrait' or 'landscape'

    \n
Retrieves the viewport size of the window. ...

Retrieves the viewport size of the window.

\n

Returns

  • Object

    object containing width and height properties

    \n
Retrieves the viewport height of the window. ...

Retrieves the viewport height of the window.

\n

Returns

Retrieves the viewport width of the window. ...

Retrieves the viewport width of the window.

\n

Returns

Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax. ...

Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.\nFor example:

\n\n
    \n
  • border-width -> borderWidth
  • \n
  • padding-top -> paddingTop
  • \n
\n\n

Parameters

  • prop : String

    The property to normalize

    \n

Returns

Parses a number or string representing margin sizes into an object. ...

Parses 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

Parameters

Returns

  • Object

    An object with margin sizes for top, right, bottom and left

    \n
Converts a CSS string into an object with a property for each style. ...

Converts a CSS string into an object with a property for each style.

\n\n

\nThe sample code below would return an object with 2 properties, one\nfor background-color and one for color.

\n\n\n
var css = 'background-color: red;color: blue; ';\nconsole.log(Ext.Element.parseStyles(css));\n
\n\n

Parameters

Returns

Parses a number or string representing margin sizes into an object. ...

Parses 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

Parameters

Returns

  • String

    An string with unitized (px if units is not specified) metrics for top, right, bottom and left

    \n
Defined By

Events

Where supported. ...

Where supported. Fires when an element is activated, for instance, through a mouse click or a keypress.

\n

Parameters

Where supported. ...

Where supported. Fires when an attribute has been modified.

\n

Parameters

Where supported. ...

Where supported. Fires when the character data has been modified.

\n

Parameters

Where supported. ...

Where supported. Similar to HTML focus event, but can be applied to any focusable element.

\n

Parameters

Where supported. ...

Where supported. Similar to HTML blur event, but can be applied to any focusable element.

\n

Parameters

Where supported. ...

Where supported. Fires when a node has been added as a child of another node.

\n

Parameters

Where supported. ...

Where supported. Fires when a node is being inserted into a document.

\n

Parameters

Where supported. ...

Where supported. Fires when a descendant node of the element is removed.

\n

Parameters

Where supported. ...

Where supported. Fires when a node is being removed from a document.

\n

Parameters

Where supported. ...

Where supported. Fires when the subtree is modified.

\n

Parameters

Fires when an object/image is stopped from loading before completely loaded. ...

Fires when an object/image is stopped from loading before completely loaded.

\n

Parameters

Fires when an element loses focus either via the pointing device or by tabbing navigation. ...

Fires when an element loses focus either via the pointing device or by tabbing navigation.

\n

Parameters

Fires when a control loses the input focus and its value has been modified since gaining focus. ...

Fires when a control loses the input focus and its value has been modified since gaining focus.

\n

Parameters

Fires when a mouse click is detected within the element. ...

Fires when a mouse click is detected within the element.

\n

Parameters

Fires when a right click is detected within the element. ...

Fires when a right click is detected within the element.

\n

Parameters

Fires when a mouse double click is detected within the element. ...

Fires when a mouse double click is detected within the element.

\n

Parameters

Fires when an object/image/frame cannot be loaded properly. ...

Fires when an object/image/frame cannot be loaded properly.

\n

Parameters

Fires when an element receives focus either via the pointing device or by tab navigation. ...

Fires when an element receives focus either via the pointing device or by tab navigation.

\n

Parameters

Fires when a keydown is detected within the element. ...

Fires when a keydown is detected within the element.

\n

Parameters

Fires when a keypress is detected within the element. ...

Fires when a keypress is detected within the element.

\n

Parameters

Fires when a keyup is detected within the element. ...

Fires when a keyup is detected within the element.

\n

Parameters

Fires when the user agent finishes loading all content within the element. ...

Fires when the user agent finishes loading all content within the element. Only supported by window, frames,\nobjects and images.

\n

Parameters

Fires when a mousedown is detected within the element. ...

Fires when a mousedown is detected within the element.

\n

Parameters

Fires when the mouse enters the element. ...

Fires when the mouse enters the element.

\n

Parameters

Fires when the mouse leaves the element. ...

Fires when the mouse leaves the element.

\n

Parameters

Fires when a mousemove is detected with the element. ...

Fires when a mousemove is detected with the element.

\n

Parameters

Fires when a mouseout is detected with the element. ...

Fires when a mouseout is detected with the element.

\n

Parameters

Fires when a mouseover is detected within the element. ...

Fires when a mouseover is detected within the element.

\n

Parameters

Fires when a mouseup is detected within the element. ...

Fires when a mouseup is detected within the element.

\n

Parameters

Fires when a form is reset. ...

Fires when a form is reset.

\n

Parameters

Fires when a document view is resized. ...

Fires when a document view is resized.

\n

Parameters

Fires when a document view is scrolled. ...

Fires when a document view is scrolled.

\n

Parameters

Fires when a user selects some text in a text field, including input and textarea. ...

Fires when a user selects some text in a text field, including input and textarea.

\n

Parameters

Fires when a form is submitted. ...

Fires when a form is submitted.

\n

Parameters

Fires when the user agent removes all content from a window or frame. ...

Fires 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.

\n

Parameters

","allMixins":[],"meta":{},"requires":[],"deprecated":null,"extends":null,"inheritable":false,"static":false,"superclasses":[],"singleton":false,"code_type":"assignment","alias":null,"statics":{"property":[{"tagname":"property","deprecated":null,"static":true,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DISPLAY","id":"static-property-DISPLAY"},{"tagname":"property","deprecated":null,"static":true,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"OFFSETS","id":"static-property-OFFSETS"},{"tagname":"property","deprecated":null,"static":true,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"VISIBILITY","id":"static-property-VISIBILITY"},{"tagname":"property","deprecated":null,"static":true,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"visibilityCls","id":"static-property-visibilityCls"}],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"fly","id":"static-method-fly"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"fromPoint","id":"static-method-fromPoint"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"get","id":"static-method-get"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getDocumentHeight","id":"static-method-getDocumentHeight"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getDocumentWidth","id":"static-method-getDocumentWidth"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getOrientation","id":"static-method-getOrientation"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getViewSize","id":"static-method-getViewSize"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getViewportHeight","id":"static-method-getViewportHeight"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getViewportWidth","id":"static-method-getViewportWidth"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"normalize","id":"static-method-normalize"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"parseBox","id":"static-method-parseBox"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"parseStyles","id":"static-method-parseStyles"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"unitizeBox","id":"static-method-unitizeBox"}],"event":[]},"subclasses":["Ext.Layer"],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"autoBoxAdjust","id":"property-autoBoxAdjust"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"defaultUnit","id":"property-defaultUnit"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"dom","id":"property-dom"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"id","id":"property-id"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"originalDisplay","id":"property-originalDisplay"}],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"constructor","id":"method-constructor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addCls","id":"method-addCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addClsOnClick","id":"method-addClsOnClick"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addClsOnFocus","id":"method-addClsOnFocus"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addClsOnOver","id":"method-addClsOnOver"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addKeyListener","id":"method-addKeyListener"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addKeyMap","id":"method-addKeyMap"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"addListener","id":"method-addListener"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"adjustWidth","id":"method-adjustWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"alignTo","id":"method-alignTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"anchorTo","id":"method-anchorTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"appendChild","id":"method-appendChild"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"appendTo","id":"method-appendTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"applyStyles","id":"method-applyStyles"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"blur","id":"method-blur"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"boxWrap","id":"method-boxWrap"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"center","id":"method-center"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"child","id":"method-child"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"clean","id":"method-clean"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"clearListeners","id":"method-clearListeners"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"clearOpacity","id":"method-clearOpacity"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"clearPositioning","id":"method-clearPositioning"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"clip","id":"method-clip"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"contains","id":"method-contains"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"createChild","id":"method-createChild"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"createProxy","id":"method-createProxy"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"createShim","id":"method-createShim"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"destroy","id":"method-destroy"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"down","id":"method-down"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"enableDisplayMode","id":"method-enableDisplayMode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"fadeIn","id":"method-fadeIn"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"fadeOut","id":"method-fadeOut"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"findParent","id":"method-findParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"findParentNode","id":"method-findParentNode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"first","id":"method-first"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"focus","id":"method-focus"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"focusable","id":"method-focusable"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"frame","id":"method-frame"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getActiveElement","id":"method-getActiveElement"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getAlignToXY","id":"method-getAlignToXY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getAnchorXY","id":"method-getAnchorXY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getAttribute","id":"method-getAttribute"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getAttributeNS","id":"method-getAttributeNS"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getBorderWidth","id":"method-getBorderWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getBottom","id":"method-getBottom"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getBox","id":"method-getBox"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getById","id":"method-getById"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getCenterXY","id":"method-getCenterXY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getColor","id":"method-getColor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getComputedHeight","id":"method-getComputedHeight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getComputedWidth","id":"method-getComputedWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getConstrainVector","id":"method-getConstrainVector"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getFrameWidth","id":"method-getFrameWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getHeight","id":"method-getHeight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getLeft","id":"method-getLeft"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getLoader","id":"method-getLoader"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getMargin","id":"method-getMargin"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getOffsetsTo","id":"method-getOffsetsTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getPadding","id":"method-getPadding"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getPageBox","id":"method-getPageBox"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getPositioning","id":"method-getPositioning"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getRegion","id":"method-getRegion"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getRight","id":"method-getRight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":true,"name":"getScopeParent","id":"method-getScopeParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getScroll","id":"method-getScroll"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getSize","id":"method-getSize"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getStyle","id":"method-getStyle"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getStyleSize","id":"method-getStyleSize"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getStyles","id":"method-getStyles"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getTextWidth","id":"method-getTextWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getTop","id":"method-getTop"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getValue","id":"method-getValue"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getViewRegion","id":"method-getViewRegion"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getViewSize","id":"method-getViewSize"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getWidth","id":"method-getWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getX","id":"method-getX"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getXY","id":"method-getXY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"getY","id":"method-getY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"ghost","id":"method-ghost"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"hasCls","id":"method-hasCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"hide","id":"method-hide"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"highlight","id":"method-highlight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"hover","id":"method-hover"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"initDD","id":"method-initDD"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"initDDProxy","id":"method-initDDProxy"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"initDDTarget","id":"method-initDDTarget"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"insertAfter","id":"method-insertAfter"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"insertBefore","id":"method-insertBefore"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"insertFirst","id":"method-insertFirst"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"insertHtml","id":"method-insertHtml"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"insertSibling","id":"method-insertSibling"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"is","id":"method-is"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"isBorderBox","id":"method-isBorderBox"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"isDisplayed","id":"method-isDisplayed"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"isMasked","id":"method-isMasked"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"isScrollable","id":"method-isScrollable"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"isVisible","id":"method-isVisible"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"last","id":"method-last"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"load","id":"method-load"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"mask","id":"method-mask"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"monitorMouseLeave","id":"method-monitorMouseLeave"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"move","id":"method-move"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"moveTo","id":"method-moveTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"next","id":"method-next"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"on","id":"method-on"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"parent","id":"method-parent"},{"tagname":"method","deprecated":{"doc":"Creates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will\nhave no effect. Usage:\n\n el.pause(1);","tagname":"deprecated","text":"\n","version":"4.0"},"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"pause","id":"method-pause"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"position","id":"method-position"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"prev","id":"method-prev"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"puff","id":"method-puff"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"purgeAllListeners","id":"method-purgeAllListeners"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"query","id":"method-query"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"radioCls","id":"method-radioCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"relayEvent","id":"method-relayEvent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"remove","id":"method-remove"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"removeAllListeners","id":"method-removeAllListeners"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"removeAnchor","id":"method-removeAnchor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"removeCls","id":"method-removeCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"removeListener","id":"method-removeListener"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"repaint","id":"method-repaint"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"replace","id":"method-replace"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"replaceCls","id":"method-replaceCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"replaceWith","id":"method-replaceWith"},{"tagname":"method","deprecated":{"doc":"Animates the transition of an element's dimensions from a starting height/width to an ending height/width. This\nmethod is a convenience implementation of {@link #shift}. Usage:\n\n // change height and width to 100x100 pixels\n el.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.\n el.scale(\n [element's width],\n [element's height], {\n easing: 'easeOut',\n duration: .35\n }\n );","tagname":"deprecated","text":"\n","version":"4.0"},"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"scale","id":"method-scale"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"scroll","id":"method-scroll"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"scrollIntoView","id":"method-scrollIntoView"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"scrollTo","id":"method-scrollTo"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"select","id":"method-select"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"selectable","id":"method-selectable"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"serializeForm","id":"method-serializeForm"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"set","id":"method-set"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setBottom","id":"method-setBottom"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setBounds","id":"method-setBounds"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setBox","id":"method-setBox"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setDisplayed","id":"method-setDisplayed"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setHeight","id":"method-setHeight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setLeft","id":"method-setLeft"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setLeftTop","id":"method-setLeftTop"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setLocation","id":"method-setLocation"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setOpacity","id":"method-setOpacity"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setPositioning","id":"method-setPositioning"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setRegion","id":"method-setRegion"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setRight","id":"method-setRight"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setSize","id":"method-setSize"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setStyle","id":"method-setStyle"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setTop","id":"method-setTop"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setVisibilityMode","id":"method-setVisibilityMode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setVisible","id":"method-setVisible"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setWidth","id":"method-setWidth"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setX","id":"method-setX"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setXY","id":"method-setXY"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"setY","id":"method-setY"},{"tagname":"method","deprecated":{"doc":"Animates 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\n el.shift({ x: 200, height: 50, opacity: .8 });\n\n // common config options shown with default values.\n el.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: .35\n });","tagname":"deprecated","text":"\n","version":"4.0"},"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"shift","id":"method-shift"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"show","id":"method-show"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"slideIn","id":"method-slideIn"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"slideOut","id":"method-slideOut"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"swallowEvent","id":"method-swallowEvent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"switchOff","id":"method-switchOff"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"toggle","id":"method-toggle"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"toggleCls","id":"method-toggleCls"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"translatePoints","id":"method-translatePoints"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"un","id":"method-un"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"unclip","id":"method-unclip"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"unmask","id":"method-unmask"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"unselectable","id":"method-unselectable"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"up","id":"method-up"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"update","id":"method-update"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Element","template":false,"required":null,"protected":false,"name":"wrap","id":"method-wrap"}],"event":[{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMActivate","id":"event-DOMActivate"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMAttrModified","id":"event-DOMAttrModified"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMCharacterDataModified","id":"event-DOMCharacterDataModified"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMFocusIn","id":"event-DOMFocusIn"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMFocusOut","id":"event-DOMFocusOut"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMNodeInserted","id":"event-DOMNodeInserted"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMNodeInsertedIntoDocument","id":"event-DOMNodeInsertedIntoDocument"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMNodeRemoved","id":"event-DOMNodeRemoved"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMNodeRemovedFromDocument","id":"event-DOMNodeRemovedFromDocument"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"DOMSubtreeModified","id":"event-DOMSubtreeModified"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"abort","id":"event-abort"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"blur","id":"event-blur"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"change","id":"event-change"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"click","id":"event-click"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"contextmenu","id":"event-contextmenu"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"dblclick","id":"event-dblclick"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"error","id":"event-error"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"focus","id":"event-focus"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"keydown","id":"event-keydown"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"keypress","id":"event-keypress"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"keyup","id":"event-keyup"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"load","id":"event-load"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mousedown","id":"event-mousedown"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mouseenter","id":"event-mouseenter"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mouseleave","id":"event-mouseleave"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mousemove","id":"event-mousemove"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mouseout","id":"event-mouseout"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mouseover","id":"event-mouseover"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"mouseup","id":"event-mouseup"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"reset","id":"event-reset"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"resize","id":"event-resize"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"scroll","id":"event-scroll"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"select","id":"event-select"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"submit","id":"event-submit"},{"tagname":"event","deprecated":null,"static":false,"owner":"Ext.Element","template":null,"required":null,"protected":false,"name":"unload","id":"event-unload"}]},"private":false,"component":false,"name":"Ext.Element","alternateClassNames":["Ext.core.Element"],"id":"class-Ext.Element","mixedInto":[],"xtypes":{},"files":[{"href":"Element-more.html#Ext-Element","filename":"Element-more.js"},{"href":"Element.alignment.html#Ext-Element","filename":"Element.alignment.js"},{"href":"Element.anim.html#Ext-Element","filename":"Element.anim.js"},{"href":"Element.dd.html#Ext-Element","filename":"Element.dd.js"},{"href":"Element.fx-more.html#Ext-Element","filename":"Element.fx-more.js"},{"href":"Element.fx.html#Ext-Element","filename":"Element.fx.js"},{"href":"Element.insertion.html#Ext-Element","filename":"Element.insertion.js"},{"href":"Element2.html#Ext-Element","filename":"Element.js"},{"href":"Element.keys.html#Ext-Element","filename":"Element.keys.js"},{"href":"Element.position.html#Ext-Element","filename":"Element.position.js"},{"href":"Element.scroll.html#Ext-Element","filename":"Element.scroll.js"},{"href":"Element.static-more.html#Ext-Element","filename":"Element.static-more.js"},{"href":"Element.static.html#Ext-Element","filename":"Element.static.js"},{"href":"Element.style.html#Ext-Element","filename":"Element.style.js"},{"href":"Element.traversal.html#Ext-Element","filename":"Element.traversal.js"}]}); \ No newline at end of file