Ext JS 3.4.0 Sencha Docs

Ext.Element

Subclasses

Files

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

All instances of this class inherit the methods of Ext.Fx making visual effects easily available to all DOM elements.

Note that the events documented in this class are not Ext events, they encapsulate browser events. To access the underlying browser event, see Ext.EventObject.browserEvent. Some older browsers may not support the full range of events. Which events are supported is beyond the control of ExtJs.

Usage:

// by id
var el = Ext.get("my-div");

// by DOM element reference
var el = Ext.get(myDivElement);

Animations

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

var el = Ext.get("my-div");

// no animation
el.setWidth(100);

Many of the functions for manipulating an element have an optional "animate" parameter. This parameter can be specified as boolean (true) for default animation effects.

// default animation
el.setWidth(100, true);

To configure the effects, an object literal with animation options to use as the Element animation configuration object can also be specified. Note that the supported Element animation configuration options are a subset of the Ext.Fx animation options specific to Fx effects. The supported Element animation configuration options are:

Option    Default   Description
--------- --------  ---------------------------------------------
duration  .35       The duration of the animation in seconds
easing    easeOut   The easing method
callback  none      A function to execute when the anim completes
scope     this      The scope (this) of the callback function
// Element animation options object
var opt = {
    duration: 1,
    easing: 'elasticIn',
    callback: this.foo,
    scope: this
};
// animation with some options set
el.setWidth(100, opt);

The Element animation object being used for the animation will be set on the options object as "anim", which allows you to stop or manipulate the animation. Here is an example:

// using the "anim" property to get the Anim object
if(opt.anim.isAnimated()){
    opt.anim.stop();
}

Also see the animate method for another animation technique.

Composite (Collections of) Elements

For working with collections of Elements, see Ext.CompositeElement

Available since: 1.1.0

Properties

Defined By

Instance properties

Ext.Element
view source
: Boolean
true to automatically adjust width and height settings for box-model issues (default to true) ...

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

Defaults to: true

Available since: 1.1.0

The default unit to append to CSS values where a unit isn't provided (defaults to px). ...

The default unit to append to CSS values where a unit isn't provided (defaults to px).

Defaults to: "px"

Available since: 1.1.0

Ext.Element
view source
: HTMLElement

The DOM element

The DOM element

Available since: 1.1.0

Ext.Element
view source
: String

The DOM element ID

The DOM element ID

Available since: 1.1.0

The element's default display mode (defaults to "") ...

The element's default display mode (defaults to "")

Defaults to: ""

Available since: 1.1.0

Defined By

Static properties

Ext.Element
view source
: Numberstatic
Visibility mode constant for use with setVisibilityMode. ...

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

Available since: 1.1.0

Ext.Element
view source
: Numberstatic
Visibility mode constant for use with setVisibilityMode. ...

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

Available since: Ext JS 3.4.0

Ext.Element
view source
: Numberstatic
Visibility mode constant for use with setVisibilityMode. ...

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

Available since: 1.1.0

Ext.Element
view source
: Stringstatic
Defaults to 'x-hide-nosize' ...

Defaults to 'x-hide-nosize'

Defaults to: 'x-hide-nosize'

Available since: Ext JS 3.4.0

Methods

Defined By

Instance methods

Ext.Element
view source
new( element, [forceNew] ) : Ext.Element
Create a new Element directly. ...

Create a new Element directly.

Available since: 1.1.0

Parameters

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

    By default the constructor checks to see if there is already an instance of this element in the cache and if there is it returns the same instance. This will skip that check (useful for extending this class).

Returns

Ext.Element
view source
( className ) : Ext.Elementchainable
Adds one or more CSS classes to the element. ...

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

Available since: 1.1.0

Parameters

  • className : String/Array

    The CSS class to add, or an array of classes

Returns

Fires

    Ext.Element
    view source
    ( className ) : Ext.Elementchainable
    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)

    Available since: 1.1.0

    Parameters

    Returns

    Fires

      Ext.Element
      view source
      ( className ) : Ext.Elementchainable
      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

      Available since: 1.1.0

      Parameters

      Returns

      Fires

        Ext.Element
        view source
        ( className ) : Ext.Elementchainable
        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

        Available since: 1.1.0

        Parameters

        Returns

        Fires

          Ext.Element
          view source
          ( key, fn, [scope] ) : Ext.KeyMap
          Convenience method for constructing a KeyMap ...

          Convenience method for constructing a KeyMap

          Available since: 1.1.0

          Parameters

          • key : Number/Array/Object/String

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

          • fn : Function

            The function to call

          • scope : Object (optional)

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

          Returns

          Ext.Element
          view source
          ( config ) : Ext.KeyMap
          Creates a KeyMap for this element ...

          Creates a KeyMap for this element

          Available since: 1.1.0

          Parameters

          • config : Object

            The KeyMap config. See Ext.KeyMap for more details

          Returns

          Ext.Element
          view source
          ( eventName, fn, [scope], [options] ) : Ext.Elementchainable
          Appends an event handler to this element. ...

          Appends an event handler to this element. The shorthand version on is equivalent.

          Available since: 1.1.0

          Parameters

          • eventName : String

            The name of event to handle.

          • fn : Function

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

            • evt : EventObject
              The EventObject describing the event.
            • el : HtmlElement
              The DOM element which was the target of the event. Note that this may be filtered by using the delegate option.
            • o : Object
              The options object from the addListener call.

          • scope : Object (optional)

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

          • options : Object (optional)

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

            • scope Object :
              The scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
            • delegate String:
              A simple selector to filter the target or look for a descendant of the target. See below for additional details.
            • stopEvent Boolean:
              True to stop the event. That is stop propagation, and prevent the default action.
            • preventDefault Boolean:
              True to prevent the default action
            • stopPropagation Boolean:
              True to prevent event propagation
            • normalized Boolean:
              False to pass a browser event to the handler function instead of an Ext.EventObject
            • target Ext.Element:
              Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a child node.
            • delay Number:
              The number of milliseconds to delay the invocation of the handler after the event fires.
            • single Boolean:
              True to add a handler to handle just the next firing of the event, and then remove itself.
            • buffer Number:
              Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place.

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

            A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function.

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

            Attaching multiple handlers in 1 call
            The method also allows for a single argument to be passed which is a config object containing properties which specify multiple handlers.

            Code:

            el.on({
                'click' : {
                    fn: this.onClick,
                    scope: this,
                    delay: 100
                },
                'mouseover' : {
                    fn: this.onMouseOver,
                    scope: this
                },
                'mouseout' : {
                    fn: this.onMouseOut,
                    scope: this
                }
            });

            Or a shorthand syntax:
            Code:

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

            delegate

            This is a configuration option that you can pass along when registering a handler for an event to assist with event delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure to memory-leaks. By registering an event for a container element as opposed to each element within a container. By setting this configuration option to a simple selector, the target element will be filtered to look for a descendant of the target. For example:

            // using this markup:
            <div id='elId'>
                <p id='p1'>paragraph one</p>
                <p id='p2' class='clickable'>paragraph two</p>
                <p id='p3'>paragraph three</p>
            </div>
            // utilize event delegation to registering just one handler on the container element:
            el = Ext.get('elId');
            el.on(
                'click',
                function(e,t) {
                    // handle click
                    console.info(t.id); // 'p2'
                },
                this,
                {
                    // filter the target element to be a descendant with the class 'clickable'
                    delegate: '.clickable'
                }
            );
            

          Returns

          Ext.Element
          view source
          ( size )private
          Test if size has a unit, otherwise appends the default ...

          Test if size has a unit, otherwise appends the default

          Available since: 1.1.0

          Parameters

          • size : Object
          Ext.Element
          view source
          ( element, position, [offsets], [animate] ) : Ext.Elementchainable
          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 document it aligns it to the viewport. The position parameter is optional, and can be specified in any one of the following formats:

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

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

          Value  Description
          -----  -----------------------------
          tl     The top left corner (default)
          t      The center of the top edge
          tr     The top right corner
          l      The center of the left edge
          c      In the center of the element
          r      The center of the right edge
          bl     The bottom left corner
          b      The center of the bottom edge
          br     The bottom right corner
          

          Example Usage:

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

          Available since: 1.1.0

          Parameters

          • element : Mixed

            The element to align to.

          • position : String

            (optional, defaults to "tl-bl?") The position to align to.

          • offsets : Array (optional)

            Offset the positioning by [x, y]

          • animate : Boolean/Object (optional)

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

          Returns

          Fires

            Ext.Element
            view source
            ( element, position, [offsets], [animate], [monitorScroll], [callback] ) : Ext.Elementchainable
            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.

            Available since: 1.1.0

            Parameters

            • element : Mixed

              The element to align to.

            • position : String

              The position to align to.

            • offsets : Array (optional)

              Offset the positioning by [x, y]

            • animate : Boolean/Object (optional)

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

            • monitorScroll : Boolean/Number (optional)

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

            • callback : Function (optional)

              The function to call after the animation finishes

            Returns

            Fires

              Ext.Element
              view source
              ( args, [duration], [onComplete], [easing], [animType] ) : Ext.Elementchainable
              Perform custom animation on this element. ...

              Perform custom animation on this element.

              • Animation Properties
              • The Animation Control Object enables gradual transitions for any member of an element's style object that takes a numeric value including but not limited to these properties:

                • bottom, top, left, right
                • height, width
                • margin, padding
                • borderWidth
                • opacity
                • fontSize
                • lineHeight
              • Animation Property Attributes
              • Each Animation Property is a config object with optional properties:

                • by* : relative change - start at current value, change by this value
                • from : ignore current value, start from this value
                • to* : start at current value, go to this value
                • unit : any allowable unit specification
                • * do not specify both to and by for an animation property

              • Animation Types
              • The supported animation types:

                • 'run' : Default
                  var el = Ext.get('complexEl');
                  el.animate(
                      // animation control object
                      {
                          borderWidth: {to: 3, from: 0},
                          opacity: {to: .3, from: 1},
                          height: {to: 50, from: el.getHeight()},
                          width: {to: 300, from: el.getWidth()},
                          top  : {by: - 100, unit: 'px'},
                      },
                      0.35,      // animation duration
                      null,      // callback
                      'easeOut', // easing method
                      'run'      // animation type ('run','color','motion','scroll')
                  );
                  
                • 'color'

                  Animates transition of background, text, or border colors.

                  el.animate(
                      // animation control object
                      {
                          color: { to: '#06e' },
                          backgroundColor: { to: '#e06' }
                      },
                      0.35,      // animation duration
                      null,      // callback
                      'easeOut', // easing method
                      'color'    // animation type ('run','color','motion','scroll')
                  );
                  
                • 'motion'

                  Animates the motion of an element to/from specific points using optional bezier way points during transit.

                  el.animate(
                      // animation control object
                      {
                          borderWidth: {to: 3, from: 0},
                          opacity: {to: .3, from: 1},
                          height: {to: 50, from: el.getHeight()},
                          width: {to: 300, from: el.getWidth()},
                          top  : {by: - 100, unit: 'px'},
                          points: {
                              to: [50, 100],  // go to this point
                              control: [      // optional bezier way points
                                  [ 600, 800],
                                  [-100, 200]
                              ]
                          }
                      },
                      3000,      // animation duration (milliseconds!)
                      null,      // callback
                      'easeOut', // easing method
                      'motion'   // animation type ('run','color','motion','scroll')
                  );
                  
                • 'scroll'

                  Animate horizontal or vertical scrolling of an overflowing page element.

                  el.animate(
                      // animation control object
                      {
                          scroll: {to: [400, 300]}
                      },
                      0.35,      // animation duration
                      null,      // callback
                      'easeOut', // easing method
                      'scroll'   // animation type ('run','color','motion','scroll')
                  );
                  

              Available since: 1.1.0

              Parameters

              • args : Object

                The animation control args

              • duration : Float (optional)

                How long the animation lasts in seconds (defaults to .35)

              • onComplete : Function (optional)

                Function to call when animation completes

              • easing : String (optional)

                Ext.Fx.easing method to use (defaults to 'easeOut')

              • animType : String (optional)

                'run' is the default. Can also be 'color', 'motion', or 'scroll'

              Returns

              Fires

                Ext.Element
                view source
                ( el ) : Ext.Elementchainable
                Appends the passed element(s) to this element ...

                Appends the passed element(s) to this element

                Available since: 1.1.0

                Parameters

                • el : String/HTMLElement/Array/Element/CompositeElement

                Returns

                Ext.Element
                view source
                ( el ) : Ext.Elementchainable
                Appends this element to the passed element ...

                Appends this element to the passed element

                Available since: 1.1.0

                Parameters

                • el : Mixed

                  The new parent element

                Returns

                Ext.Element
                view source
                ( styles ) : Ext.Elementchainable
                More flexible version of setStyle for setting style properties. ...

                More flexible version of setStyle for setting style properties.

                Available since: 1.1.0

                Parameters

                • styles : String/Object/Function

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

                Returns

                Ext.Element
                view source
                ( ) : Ext.Elementchainable
                Tries to blur the element. ...

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

                Available since: 1.1.0

                Returns

                Ext.Element
                view source
                ( [class] ) : Ext.Element
                Wraps the specified element with a special 9 element markup/CSS block that renders by default as a gray container wit...

                Wraps the specified element with a special 9 element markup/CSS block that renders by default as a gray container with a gradient background, rounded corners and a 4-way shadow.

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

                    Ext.Element.boxMarkup =
                    '<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div>
                     <div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div>
                     <div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';
                

                Example usage:

                    // Basic box wrap
                    Ext.get("foo").boxWrap();
                
                    // You can also add a custom class and use CSS inheritance rules to customize the box look.
                    // 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example
                    // for how to create a custom box wrap style.
                    Ext.get("foo").boxWrap().addClass("x-box-blue");
                

                Available since: 1.1.0

                Parameters

                • class : String (optional)

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

                Returns

                • Ext.Element

                  The outermost wrapping element of the created box structure.

                Fires

                  Ext.Element
                  view source
                  ( [centerIn] )
                  Centers the Element in either the viewport, or another Element. ...

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

                  Available since: 1.1.0

                  Parameters

                  • centerIn : Mixed (optional)

                    The element in which to center the element.

                  Fires

                    Ext.Element
                    view source
                    ( selector, [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).

                    Available since: 1.1.0

                    Parameters

                    • selector : String

                      The CSS selector

                    • returnDom : Boolean (optional)

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

                    Returns

                    Ext.Element
                    view source
                    ( [forceReclean] )
                    Removes worthless text nodes ...

                    Removes worthless text nodes

                    Available since: 1.1.0

                    Parameters

                    • forceReclean : Boolean (optional)

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

                    Ext.Element
                    view source
                    ( ) : Ext.Elementchainable
                    Clears any opacity settings from this element. ...

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

                    Available since: 1.1.0

                    Returns

                    Ext.Element
                    view source
                    ( [value] ) : Ext.Elementchainable
                    Clear positioning back to the default when the document was loaded ...

                    Clear positioning back to the default when the document was loaded

                    Available since: 1.1.0

                    Parameters

                    • value : String (optional)

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

                    Returns

                    Fires

                      Ext.Element
                      view source
                      ( ) : Ext.Elementchainable
                      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

                      Available since: 1.1.0

                      Returns

                      Fires

                        Ext.Element
                        view source
                        ( el ) : Boolean
                        Returns true if this element is an ancestor of the passed element ...

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

                        Available since: 1.1.0

                        Parameters

                        • el : HTMLElement/String

                          The element to check

                        Returns

                        • Boolean

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

                        Ext.Element
                        view source
                        ( config, [insertBefore], [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.

                        Available since: 1.1.0

                        Parameters

                        • config : Object

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

                        • insertBefore : HTMLElement (optional)

                          a child element of this element

                        • returnDom : Boolean (optional)

                          true to return the dom node instead of creating an Element

                        Returns

                        Ext.Element
                        view source
                        ( config, [renderTo], [matchBox] ) : Ext.Element
                        Creates a proxy element of this element ...

                        Creates a proxy element of this element

                        Available since: 1.1.0

                        Parameters

                        • config : String/Object

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

                        • renderTo : String/HTMLElement (optional)

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

                        • matchBox : Boolean (optional)

                          True to align and size the proxy to this element now (defaults to false)

                        Returns

                        Fires

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

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

                          Available since: 1.1.0

                          Returns

                          Ext.Element
                          view source
                          ( selector, [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).

                          Available since: 1.1.0

                          Parameters

                          • selector : String

                            The CSS selector

                          • returnDom : Boolean (optional)

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

                          Returns

                          Ext.Element
                          view source
                          ( [display] ) : Ext.Elementchainable
                          Convenience method for setVisibilityMode(Element.DISPLAY) ...

                          Convenience method for setVisibilityMode(Element.DISPLAY)

                          Available since: 1.1.0

                          Parameters

                          • display : String (optional)

                            What to set display to when visible

                          Returns

                          Fires

                            Ext.Element
                            view source
                            ( selector, [maxDepth], [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)

                            Available since: 1.1.0

                            Parameters

                            • selector : String

                              The simple selector to test

                            • maxDepth : Number/Mixed (optional)

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

                            • returnEl : Boolean (optional)

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

                            Returns

                            • HTMLElement

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

                            Ext.Element
                            view source
                            ( selector, [maxDepth], [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)

                            Available since: 1.1.0

                            Parameters

                            • selector : String

                              The simple selector to test

                            • maxDepth : Number/Mixed (optional)

                              The max depth to

                                          search as a number or element (defaults to 10 || document.body)
                              
                            • returnEl : Boolean (optional)

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

                            Returns

                            • HTMLElement

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

                            Ext.Element
                            view source
                            ( [selector], [returnDom] ) : Ext.Element/HTMLElement
                            Gets the first child, skipping text nodes ...

                            Gets the first child, skipping text nodes

                            Available since: 2.3.0

                            Parameters

                            • selector : String (optional)

                              Find the next sibling that matches the passed simple selector

                            • returnDom : Boolean (optional)

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

                            Returns

                            Fires

                              Ext.Element
                              view source
                              ( el, [named] ) : Element
                              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 to this element - the dom node can be overwritten by other code. Shorthand of fly

                              Use this to make one-time references to DOM elements which are not going to be accessed again either by application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get will be more appropriate to take advantage of the caching provided by the Ext.Element class.

                              Available since: 2.3.0

                              Parameters

                              • el : String/HTMLElement

                                The dom node or id

                              • named : String (optional)

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

                              Returns

                              • Element

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

                              Ext.Element
                              view source
                              ( [defer] ) : Ext.Elementchainable
                              Tries to focus the element. ...

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

                              Available since: 1.1.0

                              Parameters

                              • defer : Number (optional)

                                Milliseconds to defer the focus

                              Returns

                              Ext.Element
                              view source
                              ( element, position, [offsets] ) : Array
                              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 supported position values.

                              Available since: 1.1.0

                              Parameters

                              • element : Mixed

                                The element to align to.

                              • position : String

                                (optional, defaults to "tl-bl?") The position to align to.

                              • offsets : Array (optional)

                                Offset the positioning by [x, y]

                              Returns

                              Fires

                                Ext.Element
                                view source
                                ( [anchor], [local], [size] ) : Array
                                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.

                                Available since: 1.1.0

                                Parameters

                                • anchor : String (optional)

                                  The specified anchor position (defaults to "c"). See alignTo for details on supported anchor positions.

                                • local : Boolean (optional)

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

                                • size : Object (optional)

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

                                Returns

                                • Array

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

                                Fires

                                  Ext.Element
                                  view source
                                  ( name, [namespace] ) : String
                                  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.

                                  Available since: Ext JS 3.4.0

                                  Parameters

                                  • name : String

                                    The attribute name

                                  • namespace : String (optional)

                                    The namespace in which to look for the attribute

                                  Returns

                                  Ext.Element
                                  view source
                                  ( namespace, name ) : Stringdeprecated
                                  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.

                                  Available since: 1.1.0

                                  This method has been deprecated

                                  Parameters

                                  • namespace : String

                                    The namespace in which to look for the attribute

                                  • name : String

                                    The attribute name

                                  Returns

                                  Fires

                                    Ext.Element
                                    view source
                                    ( side ) : Number
                                    Gets the width of the border(s) for the specified side(s) ...

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

                                    Available since: 1.1.0

                                    Parameters

                                    • side : String

                                      Can be t, l, r, b or any combination of those to add multiple values. For example, passing 'lr' would get the border left width + the border right width.

                                    Returns

                                    • Number

                                      The width of the sides passed added together

                                    Fires

                                      Ext.Element
                                      view source
                                      ( local ) : Number
                                      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)

                                      Available since: 1.1.0

                                      Parameters

                                      • local : Boolean

                                        True to get the local css position instead of page coordinate

                                      Returns

                                      Fires

                                        Ext.Element
                                        view source
                                        ( [contentBox], [local] ) : Object
                                        Return an object defining the area of this Element which can be passed to setBox to set another Element's size/locati...

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

                                        Available since: 1.1.0

                                        Parameters

                                        • contentBox : Boolean (optional)

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

                                        • local : Boolean (optional)

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

                                        Returns

                                        • Object

                                          box An object in the format

                                          {
                                              x: <Element's X position>,
                                              y: <Element's Y position>,
                                              width: <Element's width>,
                                              height: <Element's height>,
                                              bottom: <Element's lower bound>,
                                              right: <Element's rightmost bound>
                                          }
                                          

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

                                        Fires

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

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

                                          Available since: 1.1.0

                                          Returns

                                          • Array

                                            The x, y values [x, y]

                                          Fires

                                            Ext.Element
                                            view source
                                            ( attr, defaultValue, [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 are convert to standard 6 digit hex color.

                                            Available since: 1.1.0

                                            Parameters

                                            • attr : String

                                              The css attribute

                                            • defaultValue : String

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

                                            • prefix : String (optional)

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

                                            Fires

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

                                              Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements if a height has not been set using CSS.

                                              Available since: 1.1.0

                                              Returns

                                              Fires

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

                                                Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements if a width has not been set using CSS.

                                                Available since: 1.1.0

                                                Returns

                                                Fires

                                                  Ext.Element
                                                  view source
                                                  ( sides ) : Number
                                                  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()

                                                       for more information about the sides.
                                                  

                                                  Available since: 1.1.0

                                                  Parameters

                                                  Returns

                                                  Fires

                                                    Ext.Element
                                                    view source
                                                    ( [contentHeight] ) : Number
                                                    Returns the offset height of the element ...

                                                    Returns the offset height of the element

                                                    Available since: 1.1.0

                                                    Parameters

                                                    • contentHeight : Boolean (optional)

                                                      true to get the height minus borders and padding

                                                    Returns

                                                    Fires

                                                      Ext.Element
                                                      view source
                                                      ( local ) : Number
                                                      Gets the left X coordinate ...

                                                      Gets the left X coordinate

                                                      Available since: 1.1.0

                                                      Parameters

                                                      • local : Boolean

                                                        True to get the local css position instead of page coordinate

                                                      Returns

                                                      Fires

                                                        Ext.Element
                                                        view source
                                                        ( [sides] ) : Object/Number
                                                        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, then it returns the calculated width of the sides (see getPadding)

                                                        Available since: 1.1.0

                                                        Parameters

                                                        • sides : String (optional)

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

                                                        Returns

                                                        Fires

                                                          Ext.Element
                                                          view source
                                                          ( element ) : Array
                                                          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.

                                                          Available since: 2.3.0

                                                          Parameters

                                                          • element : Mixed

                                                            The element to get the offsets from.

                                                          Returns

                                                          • Array

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

                                                          Fires

                                                            Ext.Element
                                                            view source
                                                            ( side ) : Number
                                                            Gets the width of the padding(s) for the specified side(s) ...

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

                                                            Available since: 1.1.0

                                                            Parameters

                                                            • side : String

                                                              Can be t, l, r, b or any combination of those to add multiple values. For example, passing 'lr' would get the padding left + the padding right.

                                                            Returns

                                                            • Number

                                                              The padding of the sides passed added together

                                                            Fires

                                                              Ext.Element
                                                              view source
                                                              ( ) : Object
                                                              Gets an object with all CSS positioning properties. ...

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

                                                              Available since: 1.1.0

                                                              Returns

                                                              • Object

                                                              Fires

                                                                Ext.Element
                                                                view source
                                                                ( ) : Region
                                                                Returns the region of the given element. ...

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

                                                                Available since: 1.1.0

                                                                Returns

                                                                • Region

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

                                                                Ext.Element
                                                                view source
                                                                ( local ) : Number
                                                                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)

                                                                Available since: 1.1.0

                                                                Parameters

                                                                • local : Boolean

                                                                  True to get the local css position instead of page coordinate

                                                                Returns

                                                                Fires

                                                                  Ext.Element
                                                                  view source
                                                                  ( ) : Object
                                                                  Returns the current scroll position of the element. ...

                                                                  Returns the current scroll position of the element.

                                                                  Available since: 1.1.0

                                                                  Returns

                                                                  • Object

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

                                                                  Ext.Element
                                                                  view source
                                                                  ( [contentSize] ) : Object
                                                                  Returns the size of the element. ...

                                                                  Returns the size of the element.

                                                                  Available since: 1.1.0

                                                                  Parameters

                                                                  • contentSize : Boolean (optional)

                                                                    true to get the width/size minus borders and padding

                                                                  Returns

                                                                  • Object

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

                                                                  Fires

                                                                    Ext.Element
                                                                    view source
                                                                    ( property ) : String
                                                                    Normalizes currentStyle and computedStyle. ...

                                                                    Normalizes currentStyle and computedStyle.

                                                                    Available since: 1.1.0

                                                                    Parameters

                                                                    • property : String

                                                                      The style property whose value is returned.

                                                                    Returns

                                                                    • String

                                                                      The current value of the style property for this element.

                                                                    Ext.Element
                                                                    view source
                                                                    ( )
                                                                    Returns the dimensions of the element available to lay content out in. ...

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

                                                                    getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth. To obtain the size excluding scrollbars, use getViewSize Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.

                                                                    Available since: Ext JS 3.4.0

                                                                    Fires

                                                                      Ext.Element
                                                                      view source
                                                                      ( style1, style2, etc ) : Object
                                                                      Returns an object with properties matching the styles requested. ...

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

                                                                      Available since: 1.1.0

                                                                      Parameters

                                                                      Returns

                                                                      • Object

                                                                        The style object

                                                                      Fires

                                                                        Ext.Element
                                                                        view source
                                                                        ( text, [min], [max] ) : Number
                                                                        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.

                                                                        Available since: 2.3.0

                                                                        Parameters

                                                                        • text : String

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

                                                                        • min : Number (optional)

                                                                          The minumum value to return.

                                                                        • max : Number (optional)

                                                                          The maximum value to return.

                                                                        Returns

                                                                        • Number

                                                                          The text width in pixels. getTextWidth

                                                                        Ext.Element
                                                                        view source
                                                                        ( local ) : Number
                                                                        Gets the top Y coordinate ...

                                                                        Gets the top Y coordinate

                                                                        Available since: 1.1.0

                                                                        Parameters

                                                                        • local : Boolean

                                                                          True to get the local css position instead of page coordinate

                                                                        Returns

                                                                        Fires

                                                                          Gets this element's Updater ...

                                                                          Gets this element's Updater

                                                                          Available since: 2.3.0

                                                                          Returns

                                                                          Ext.Element
                                                                          view source
                                                                          ( asNumber ) : String/Number
                                                                          Returns the value of the "value" attribute ...

                                                                          Returns the value of the "value" attribute

                                                                          Available since: 1.1.0

                                                                          Parameters

                                                                          • asNumber : Boolean

                                                                            true to parse the value as a number

                                                                          Returns

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

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

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

                                                                          example:
                                                                                  var vpSize = Ext.getBody().getViewSize();
                                                                          
                                                                                  // all Windows created afterwards will have a default value of 90% height and 95% width
                                                                                  Ext.Window.override({
                                                                                      width: vpSize.width * 0.9,
                                                                                      height: vpSize.height * 0.95
                                                                                  });
                                                                                  // To handle window resizing you would have to hook onto onWindowResize.
                                                                          
                                                                          getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars. To obtain the size including scrollbars, use getStyleSize Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.

                                                                          Available since: 1.1.0

                                                                          Ext.Element
                                                                          view source
                                                                          ( [contentWidth] ) : Number
                                                                          Returns the offset width of the element ...

                                                                          Returns the offset width of the element

                                                                          Available since: 1.1.0

                                                                          Parameters

                                                                          • contentWidth : Boolean (optional)

                                                                            true to get the width minus borders and padding

                                                                          Returns

                                                                          Fires

                                                                            Ext.Element
                                                                            view source
                                                                            ( ) : Number
                                                                            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).

                                                                            Available since: 1.1.0

                                                                            Returns

                                                                            • Number

                                                                              The X position of the element

                                                                            Ext.Element
                                                                            view source
                                                                            ( ) : Array
                                                                            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).

                                                                            Available since: 1.1.0

                                                                            Returns

                                                                            • Array

                                                                              The XY position of the element

                                                                            Ext.Element
                                                                            view source
                                                                            ( ) : Number
                                                                            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).

                                                                            Available since: 1.1.0

                                                                            Returns

                                                                            • Number

                                                                              The Y position of the element

                                                                            Ext.Element
                                                                            view source
                                                                            ( className ) : Boolean
                                                                            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.

                                                                            Available since: 1.1.0

                                                                            Parameters

                                                                            • className : String

                                                                              The CSS class to check for

                                                                            Returns

                                                                            • Boolean

                                                                              True if the class exists, else false

                                                                            Ext.Element
                                                                            view source
                                                                            ( )private
                                                                            Determine if the Element has a relevant height and width available based upon current logical visibility state ...

                                                                            Determine if the Element has a relevant height and width available based upon current logical visibility state

                                                                            Available since: Ext JS 3.4.0

                                                                            Fires

                                                                              Ext.Element
                                                                              view source
                                                                              ( [animate] ) : Ext.Elementchainable
                                                                              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.

                                                                              Available since: 1.1.0

                                                                              Parameters

                                                                              • animate : Boolean/Object (optional)

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

                                                                              Returns

                                                                              Fires

                                                                                Ext.Element
                                                                                view source
                                                                                ( overFn, outFn, [scope], [options] ) : Ext.Elementchainable
                                                                                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.

                                                                                Available since: 2.3.0

                                                                                Parameters

                                                                                • overFn : Function

                                                                                  The function to call when the mouse enters the Element.

                                                                                • outFn : Function

                                                                                  The function to call when the mouse leaves the Element.

                                                                                • scope : Object (optional)

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

                                                                                • options : Object (optional)

                                                                                  Options for the listener. See the <tt>options</tt> parameter.

                                                                                Returns

                                                                                Fires

                                                                                  Ext.Element
                                                                                  view source
                                                                                  ( group, config, overrides ) : Ext.dd.DD
                                                                                  Initializes a Ext.dd.DD drag drop object for this element. ...

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

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • group : String

                                                                                    The group the DD object is member of

                                                                                  • config : Object

                                                                                    The DD config object

                                                                                  • overrides : Object

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

                                                                                  Returns

                                                                                  Ext.Element
                                                                                  view source
                                                                                  ( group, config, overrides ) : Ext.dd.DDProxy
                                                                                  Initializes a Ext.dd.DDProxy object for this element. ...

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

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • group : String

                                                                                    The group the DDProxy object is member of

                                                                                  • config : Object

                                                                                    The DDProxy config object

                                                                                  • overrides : Object

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

                                                                                  Returns

                                                                                  Ext.Element
                                                                                  view source
                                                                                  ( group, config, overrides ) : Ext.dd.DDTarget
                                                                                  Initializes a Ext.dd.DDTarget object for this element. ...

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

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • group : String

                                                                                    The group the DDTarget object is member of

                                                                                  • config : Object

                                                                                    The DDTarget config object

                                                                                  • overrides : Object

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

                                                                                  Returns

                                                                                  Ext.Element
                                                                                  view source
                                                                                  ( el ) : Ext.Elementchainable
                                                                                  Inserts this element after the passed element in the DOM ...

                                                                                  Inserts this element after the passed element in the DOM

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • el : Mixed

                                                                                    The element to insert after

                                                                                  Returns

                                                                                  Ext.Element
                                                                                  view source
                                                                                  ( el ) : Ext.Elementchainable
                                                                                  Inserts this element before the passed element in the DOM ...

                                                                                  Inserts this element before the passed element in the DOM

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • el : Mixed

                                                                                    The element before which this element will be inserted

                                                                                  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

                                                                                  Available since: 1.1.0

                                                                                  Parameters

                                                                                  • el : Mixed/Object

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

                                                                                  Returns

                                                                                  Fires

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

                                                                                    Inserts an html fragment into this element

                                                                                    Available since: 1.1.0

                                                                                    Parameters

                                                                                    • where : String

                                                                                      Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.

                                                                                    • html : String

                                                                                      The HTML fragment

                                                                                    • returnEl : Boolean (optional)

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

                                                                                    Returns

                                                                                    • HTMLElement/Ext.Element

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

                                                                                    Ext.Element
                                                                                    view source
                                                                                    ( el, [where], [returnDom] ) : Ext.Element
                                                                                    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

                                                                                    Available since: 1.1.0

                                                                                    Parameters

                                                                                    • el : Mixed/Object/Array

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

                                                                                    • where : String (optional)

                                                                                      'before' or 'after' defaults to before

                                                                                    • returnDom : Boolean (optional)

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

                                                                                    Returns

                                                                                    • Ext.Element

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

                                                                                    Ext.Element
                                                                                    view source
                                                                                    ( selector ) : Boolean
                                                                                    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)

                                                                                    Available since: 1.1.0

                                                                                    Parameters

                                                                                    • selector : String

                                                                                      The simple selector to test

                                                                                    Returns

                                                                                    • Boolean

                                                                                      True if this element matches the selector, else false

                                                                                    Ext.Element
                                                                                    view source
                                                                                    ( ) : Boolean
                                                                                    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

                                                                                    Available since: 1.1.0

                                                                                    Returns

                                                                                    • Boolean
                                                                                    Ext.Element
                                                                                    view source
                                                                                    ( ) : Boolean
                                                                                    Returns true if display is not "none" ...

                                                                                    Returns true if display is not "none"

                                                                                    Available since: 1.1.0

                                                                                    Returns

                                                                                    • Boolean

                                                                                    Fires

                                                                                      Ext.Element
                                                                                      view source
                                                                                      ( ) : Boolean
                                                                                      Returns true if this element is masked ...

                                                                                      Returns true if this element is masked

                                                                                      Available since: 1.1.0

                                                                                      Returns

                                                                                      • Boolean
                                                                                      Ext.Element
                                                                                      view source
                                                                                      ( ) : Boolean
                                                                                      Returns true if this element is scrollable. ...

                                                                                      Returns true if this element is scrollable.

                                                                                      Available since: 1.1.0

                                                                                      Returns

                                                                                      • Boolean
                                                                                      Ext.Element
                                                                                      view source
                                                                                      ( ) : Boolean
                                                                                      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.

                                                                                      Available since: 1.1.0

                                                                                      Returns

                                                                                      • Boolean

                                                                                        True if the element is currently visible, else false

                                                                                      Fires

                                                                                        Ext.Element
                                                                                        view source
                                                                                        ( [selector], [returnDom] ) : Ext.Element/HTMLElement
                                                                                        Gets the last child, skipping text nodes ...

                                                                                        Gets the last child, skipping text nodes

                                                                                        Available since: 2.3.0

                                                                                        Parameters

                                                                                        • selector : String (optional)

                                                                                          Find the previous sibling that matches the passed simple selector

                                                                                        • returnDom : Boolean (optional)

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

                                                                                        Returns

                                                                                        Fires

                                                                                          Ext.Element
                                                                                          view source
                                                                                          ( options ) : Ext.Elementchainable
                                                                                          Updates the innerHTML of this Element from a specified URL. ...

                                                                                          Updates the innerHTML of this Element from a specified URL. Note that this is subject to the Same Origin Policy

                                                                                          Updating innerHTML of an element will not execute embedded <script> elements. This is a browser restriction.

                                                                                          Available since: 1.1.0

                                                                                          Parameters

                                                                                          • options : Mixed

                                                                                            . Either a sring containing the URL from which to load the HTML, or an Ext.Ajax.request options object specifying exactly how to request the HTML.

                                                                                          Returns

                                                                                          Ext.Element
                                                                                          view source
                                                                                          ( [msg], [msgCls] ) : Element
                                                                                          Puts a mask over this element to disable user interaction. ...

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

                                                                                          Available since: 1.1.0

                                                                                          Parameters

                                                                                          • msg : String (optional)

                                                                                            A message to display in the mask

                                                                                          • msgCls : String (optional)

                                                                                            A css class to apply to the msg element

                                                                                          Returns

                                                                                          • Element

                                                                                            The mask element

                                                                                          Fires

                                                                                            Ext.Element
                                                                                            view source
                                                                                            ( direction, distance, [animate] ) : Ext.Elementchainable
                                                                                            Move this element relative to its current position. ...

                                                                                            Move this element relative to its current position.

                                                                                            Available since: 1.1.0

                                                                                            Parameters

                                                                                            • direction : String

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

                                                                                            • distance : Number

                                                                                              How far to move the element in pixels

                                                                                            • animate : Boolean/Object (optional)

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

                                                                                            Returns

                                                                                            Fires

                                                                                              Ext.Element
                                                                                              view source
                                                                                              ( x, y, [animate] ) : Ext.Elementchainable
                                                                                              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. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

                                                                                              Available since: 1.1.0

                                                                                              Parameters

                                                                                              • x : Number

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

                                                                                              • y : Number

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

                                                                                              • animate : Boolean/Object (optional)

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

                                                                                              Returns

                                                                                              Fires

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

                                                                                                Gets the next sibling, skipping text nodes

                                                                                                Available since: 2.3.0

                                                                                                Parameters

                                                                                                • selector : String (optional)

                                                                                                  Find the next sibling that matches the passed simple selector

                                                                                                • returnDom : Boolean (optional)

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

                                                                                                Returns

                                                                                                Fires

                                                                                                  Ext.Element
                                                                                                  view source
                                                                                                  ( eventName, fn, [scope], [options] )
                                                                                                  Appends an event handler (shorthand for addListener). ...

                                                                                                  Appends an event handler (shorthand for addListener).

                                                                                                  Available since: 1.1.0

                                                                                                  Parameters

                                                                                                  • eventName : String

                                                                                                    The name of event to handle.

                                                                                                  • fn : Function

                                                                                                    The handler function the event invokes.

                                                                                                  • scope : Object (optional)

                                                                                                    The scope (this reference) in which the handler function is executed.

                                                                                                  • options : Object (optional)

                                                                                                    An object containing standard addListener options

                                                                                                  Ext.Element
                                                                                                  view source
                                                                                                  ( [selector], [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

                                                                                                  Available since: 2.3.0

                                                                                                  Parameters

                                                                                                  • selector : String (optional)

                                                                                                    Find a parent node that matches the passed simple selector

                                                                                                  • returnDom : Boolean (optional)

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

                                                                                                  Returns

                                                                                                  Fires

                                                                                                    Ext.Element
                                                                                                    view source
                                                                                                    ( [pos], [zIndex], [x], [y] )
                                                                                                    Initializes positioning on this element. ...

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

                                                                                                    Available since: 1.1.0

                                                                                                    Parameters

                                                                                                    • pos : String (optional)

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

                                                                                                    • zIndex : Number (optional)

                                                                                                      The zIndex to apply

                                                                                                    • x : Number (optional)

                                                                                                      Set the page X position

                                                                                                    • y : Number (optional)

                                                                                                      Set the page Y position

                                                                                                    Fires

                                                                                                      Ext.Element
                                                                                                      view source
                                                                                                      ( [selector], [returnDom] ) : Ext.Element/HTMLElement
                                                                                                      Gets the previous sibling, skipping text nodes ...

                                                                                                      Gets the previous sibling, skipping text nodes

                                                                                                      Available since: 2.3.0

                                                                                                      Parameters

                                                                                                      • selector : String (optional)

                                                                                                        Find the previous sibling that matches the passed simple selector

                                                                                                      • returnDom : Boolean (optional)

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

                                                                                                      Returns

                                                                                                      Fires

                                                                                                        Ext.Element
                                                                                                        view source
                                                                                                        ( ) : Ext.Elementchainable
                                                                                                        Recursively removes all previous added listeners from this element and its children ...

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

                                                                                                        Available since: Ext JS 3.4.0

                                                                                                        Returns

                                                                                                        Ext.Element
                                                                                                        view source
                                                                                                        ( selector ) : Array
                                                                                                        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).

                                                                                                        Available since: 1.1.0

                                                                                                        Parameters

                                                                                                        • selector : String

                                                                                                          The CSS selector

                                                                                                        Returns

                                                                                                        • Array

                                                                                                          An array of the matched nodes

                                                                                                        Ext.Element
                                                                                                        view source
                                                                                                        ( className ) : Ext.Elementchainable
                                                                                                        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.

                                                                                                        Available since: 1.1.0

                                                                                                        Parameters

                                                                                                        • className : String/Array

                                                                                                          The CSS class to add, or an array of classes

                                                                                                        Returns

                                                                                                        Fires

                                                                                                          Ext.Element
                                                                                                          view source
                                                                                                          ( eventName, object )
                                                                                                          Create an event handler on this element such that when the event fires and is handled by this element, it will be rel...

                                                                                                          Create an event handler on this element such that when the event fires and is handled by this element, it will be relayed to another object (i.e., fired again as if it originated from that object instead).

                                                                                                          Available since: 1.1.0

                                                                                                          Parameters

                                                                                                          • eventName : String

                                                                                                            The type of event to relay

                                                                                                          • object : Object

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

                                                                                                          Fires

                                                                                                            Ext.Element
                                                                                                            view source
                                                                                                            ( )
                                                                                                            Removes this element's dom reference. ...

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

                                                                                                            Available since: 1.1.0

                                                                                                            Removes all previous added listeners from this element ...

                                                                                                            Removes all previous added listeners from this element

                                                                                                            Available since: 1.1.0

                                                                                                            Returns

                                                                                                            Ext.Element
                                                                                                            view source
                                                                                                            ( ) : Ext.Elementchainable
                                                                                                            Remove any anchor to this element. ...

                                                                                                            Remove any anchor to this element. See anchorTo.

                                                                                                            Available since: Ext JS 3.4.0

                                                                                                            Returns

                                                                                                            Fires

                                                                                                              Ext.Element
                                                                                                              view source
                                                                                                              ( className ) : Ext.Elementchainable
                                                                                                              Removes one or more CSS classes from the element. ...

                                                                                                              Removes one or more CSS classes from the element.

                                                                                                              Available since: 1.1.0

                                                                                                              Parameters

                                                                                                              • className : String/Array

                                                                                                                The CSS class to remove, or an array of classes

                                                                                                              Returns

                                                                                                              Ext.Element
                                                                                                              view source
                                                                                                              ( eventName, fn, scope ) : Ext.Elementchainable
                                                                                                              Removes an event handler from this element. ...

                                                                                                              Removes an event handler from this element. The shorthand version un is equivalent. Note: if a scope was explicitly specified when adding the listener, the same scope must be specified here. Example:

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

                                                                                                              Available since: 1.1.0

                                                                                                              Parameters

                                                                                                              • eventName : String

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

                                                                                                              • fn : Function

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

                                                                                                              • scope : Object

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

                                                                                                              Returns

                                                                                                              Ext.Element
                                                                                                              view source
                                                                                                              ( ) : Ext.Elementchainable
                                                                                                              Forces the browser to repaint this element ...

                                                                                                              Forces the browser to repaint this element

                                                                                                              Available since: 1.1.0

                                                                                                              Returns

                                                                                                              Fires

                                                                                                                Ext.Element
                                                                                                                view source
                                                                                                                ( el ) : Ext.Elementchainable
                                                                                                                Replaces the passed element with this element ...

                                                                                                                Replaces the passed element with this element

                                                                                                                Available since: 1.1.0

                                                                                                                Parameters

                                                                                                                • el : Mixed

                                                                                                                  The element to replace

                                                                                                                Returns

                                                                                                                Fires

                                                                                                                  Ext.Element
                                                                                                                  view source
                                                                                                                  ( oldClassName, newClassName ) : Ext.Elementchainable
                                                                                                                  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.

                                                                                                                  Available since: 1.1.0

                                                                                                                  Parameters

                                                                                                                  • oldClassName : String

                                                                                                                    The CSS class to replace

                                                                                                                  • newClassName : String

                                                                                                                    The replacement CSS class

                                                                                                                  Returns

                                                                                                                  Fires

                                                                                                                    Ext.Element
                                                                                                                    view source
                                                                                                                    ( el ) : Ext.Elementchainable
                                                                                                                    Replaces this element with the passed element ...

                                                                                                                    Replaces this element with the passed element

                                                                                                                    Available since: 2.3.0

                                                                                                                    Parameters

                                                                                                                    • el : Mixed/Object

                                                                                                                      The new element or a DomHelper config of an element to create

                                                                                                                    Returns

                                                                                                                    Ext.Element
                                                                                                                    view source
                                                                                                                    ( direction, distance, [animate] ) : Boolean
                                                                                                                    Scrolls this element the specified direction. ...

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

                                                                                                                    Available since: 1.1.0

                                                                                                                    Parameters

                                                                                                                    • direction : String

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

                                                                                                                    • distance : Number

                                                                                                                      How far to scroll the element in pixels

                                                                                                                    • animate : Boolean/Object (optional)

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

                                                                                                                    Returns

                                                                                                                    • Boolean

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

                                                                                                                    Fires

                                                                                                                      Ext.Element
                                                                                                                      view source
                                                                                                                      ( [container], [hscroll] ) : Ext.Elementchainable
                                                                                                                      Scrolls this element into view within the passed container. ...

                                                                                                                      Scrolls this element into view within the passed container.

                                                                                                                      Available since: 1.1.0

                                                                                                                      Parameters

                                                                                                                      • container : Mixed (optional)

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

                                                                                                                      • hscroll : Boolean (optional)

                                                                                                                        False to disable horizontal scroll (defaults to true)

                                                                                                                      Returns

                                                                                                                      Fires

                                                                                                                        Ext.Element
                                                                                                                        view source
                                                                                                                        ( side, value ) : Elementchainable
                                                                                                                        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().

                                                                                                                        Available since: 1.1.0

                                                                                                                        Parameters

                                                                                                                        • side : String

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

                                                                                                                        • value : Number

                                                                                                                          The new scroll value.

                                                                                                                        Returns

                                                                                                                        • Element

                                                                                                                          this

                                                                                                                        Ext.Element
                                                                                                                        view source
                                                                                                                        ( selector ) : CompositeElement/CompositeElementLite
                                                                                                                        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).

                                                                                                                        Available since: 1.1.0

                                                                                                                        Parameters

                                                                                                                        • selector : String

                                                                                                                          The CSS selector

                                                                                                                        Returns

                                                                                                                        • CompositeElement/CompositeElementLite

                                                                                                                          The composite element

                                                                                                                        Ext.Element
                                                                                                                        view source
                                                                                                                        ( o, [useSet] ) : Ext.Elementchainable
                                                                                                                        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)

                                                                                                                        Available since: 1.1.0

                                                                                                                        Parameters

                                                                                                                        • o : Object

                                                                                                                          The object with the attributes

                                                                                                                        • useSet : Boolean (optional)

                                                                                                                          false to override the default setAttribute to use expandos.

                                                                                                                        Returns

                                                                                                                        Ext.Element
                                                                                                                        view source
                                                                                                                        ( bottom ) : Ext.Elementchainable
                                                                                                                        Sets the element's CSS bottom style. ...

                                                                                                                        Sets the element's CSS bottom style.

                                                                                                                        Available since: 1.1.0

                                                                                                                        Parameters

                                                                                                                        • bottom : String

                                                                                                                          The bottom CSS property value

                                                                                                                        Returns

                                                                                                                        Fires

                                                                                                                          Ext.Element
                                                                                                                          view source
                                                                                                                          ( x, y, width, height, [animate] ) : Ext.Elementchainable
                                                                                                                          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.

                                                                                                                          Available since: 1.1.0

                                                                                                                          Parameters

                                                                                                                          • x : Number

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

                                                                                                                          • y : Number

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

                                                                                                                          • width : Mixed

                                                                                                                            The new width. This may be one of:

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

                                                                                                                          • height : Mixed

                                                                                                                            The new height. This may be one of:

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

                                                                                                                          • animate : Boolean/Object (optional)

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

                                                                                                                          Returns

                                                                                                                          Fires

                                                                                                                            Ext.Element
                                                                                                                            view source
                                                                                                                            ( box, [adjust], [animate] ) : Ext.Elementchainable
                                                                                                                            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.

                                                                                                                            Available since: 1.1.0

                                                                                                                            Parameters

                                                                                                                            • box : Object

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

                                                                                                                            • adjust : Boolean (optional)

                                                                                                                              Whether to adjust for box-model issues automatically

                                                                                                                            • animate : Boolean/Object (optional)

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

                                                                                                                            Returns

                                                                                                                            Fires

                                                                                                                              Ext.Element
                                                                                                                              view source
                                                                                                                              ( value ) : Ext.Elementchainable
                                                                                                                              Sets the CSS display property. ...

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

                                                                                                                              Available since: 1.1.0

                                                                                                                              Parameters

                                                                                                                              • value : Mixed

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

                                                                                                                              Returns

                                                                                                                              Fires

                                                                                                                                Ext.Element
                                                                                                                                view source
                                                                                                                                ( height, [animate] ) : Ext.Elementchainable
                                                                                                                                Set the height of this Element. ...

                                                                                                                                Set the height of this Element.

                                                                                                                                // change the height to 200px and animate with default configuration
                                                                                                                                Ext.fly('elementId').setHeight(200, true);
                                                                                                                                
                                                                                                                                // change the height to 150px and animate with a custom configuration
                                                                                                                                Ext.fly('elId').setHeight(150, {
                                                                                                                                    duration : .5, // animation will have a duration of .5 seconds
                                                                                                                                    // will change the content to "finished"
                                                                                                                                    callback: function(){ this.update("finished"); }
                                                                                                                                });
                                                                                                                                

                                                                                                                                Available since: 1.1.0

                                                                                                                                Parameters

                                                                                                                                • height : Mixed

                                                                                                                                  The new height. This may be one of:

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

                                                                                                                                • animate : Boolean/Object (optional)

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

                                                                                                                                Returns

                                                                                                                                Fires

                                                                                                                                  Ext.Element
                                                                                                                                  view source
                                                                                                                                  ( left ) : Ext.Elementchainable
                                                                                                                                  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).

                                                                                                                                  Available since: 1.1.0

                                                                                                                                  Parameters

                                                                                                                                  • left : String

                                                                                                                                    The left CSS property value

                                                                                                                                  Returns

                                                                                                                                  Fires

                                                                                                                                    Ext.Element
                                                                                                                                    view source
                                                                                                                                    ( left, top ) : Ext.Elementchainable
                                                                                                                                    Quick set left and top adding default units ...

                                                                                                                                    Quick set left and top adding default units

                                                                                                                                    Available since: 1.1.0

                                                                                                                                    Parameters

                                                                                                                                    • left : String

                                                                                                                                      The left CSS property value

                                                                                                                                    • top : String

                                                                                                                                      The top CSS property value

                                                                                                                                    Returns

                                                                                                                                    Fires

                                                                                                                                      Ext.Element
                                                                                                                                      view source
                                                                                                                                      ( x, y, [animate] ) : Ext.Elementchainable
                                                                                                                                      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. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

                                                                                                                                      Available since: 1.1.0

                                                                                                                                      Parameters

                                                                                                                                      • x : Number

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

                                                                                                                                      • y : Number

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

                                                                                                                                      • animate : Boolean/Object (optional)

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

                                                                                                                                      Returns

                                                                                                                                      Fires

                                                                                                                                        Ext.Element
                                                                                                                                        view source
                                                                                                                                        ( opacity, [animate] ) : Ext.Elementchainable
                                                                                                                                        Set the opacity of the element ...

                                                                                                                                        Set the opacity of the element

                                                                                                                                        Available since: 1.1.0

                                                                                                                                        Parameters

                                                                                                                                        • opacity : Float

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

                                                                                                                                        • animate : Boolean/Object (optional)

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

                                                                                                                                        Returns

                                                                                                                                        Fires

                                                                                                                                          Ext.Element
                                                                                                                                          view source
                                                                                                                                          ( posCfg ) : Ext.Elementchainable
                                                                                                                                          Set positioning with an object returned by getPositioning(). ...

                                                                                                                                          Set positioning with an object returned by getPositioning().

                                                                                                                                          Available since: 1.1.0

                                                                                                                                          Parameters

                                                                                                                                          • posCfg : Object

                                                                                                                                          Returns

                                                                                                                                          Fires

                                                                                                                                            Ext.Element
                                                                                                                                            view source
                                                                                                                                            ( region, [animate] ) : Ext.Elementchainable
                                                                                                                                            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.

                                                                                                                                            Available since: 1.1.0

                                                                                                                                            Parameters

                                                                                                                                            • region : Ext.lib.Region

                                                                                                                                              The region to fill

                                                                                                                                            • animate : Boolean/Object (optional)

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

                                                                                                                                            Returns

                                                                                                                                            Fires

                                                                                                                                              Ext.Element
                                                                                                                                              view source
                                                                                                                                              ( right ) : Ext.Elementchainable
                                                                                                                                              Sets the element's CSS right style. ...

                                                                                                                                              Sets the element's CSS right style.

                                                                                                                                              Available since: 1.1.0

                                                                                                                                              Parameters

                                                                                                                                              • right : String

                                                                                                                                                The right CSS property value

                                                                                                                                              Returns

                                                                                                                                              Fires

                                                                                                                                                Ext.Element
                                                                                                                                                view source
                                                                                                                                                ( width, height, [animate] ) : Ext.Elementchainable
                                                                                                                                                Set the size of this Element. ...

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

                                                                                                                                                Available since: 1.1.0

                                                                                                                                                Parameters

                                                                                                                                                • width : Mixed

                                                                                                                                                  The new width. This may be one of:

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

                                                                                                                                                • height : Mixed

                                                                                                                                                  The new height. This may be one of:

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

                                                                                                                                                • animate : Boolean/Object (optional)

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

                                                                                                                                                Returns

                                                                                                                                                Fires

                                                                                                                                                  Ext.Element
                                                                                                                                                  view source
                                                                                                                                                  ( property, [value] ) : Ext.Elementchainable
                                                                                                                                                  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.

                                                                                                                                                  Available since: 1.1.0

                                                                                                                                                  Parameters

                                                                                                                                                  • property : String/Object

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

                                                                                                                                                  • value : String (optional)

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

                                                                                                                                                  Returns

                                                                                                                                                  Fires

                                                                                                                                                    Ext.Element
                                                                                                                                                    view source
                                                                                                                                                    ( top ) : Ext.Elementchainable
                                                                                                                                                    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).

                                                                                                                                                    Available since: 1.1.0

                                                                                                                                                    Parameters

                                                                                                                                                    • top : String

                                                                                                                                                      The top CSS property value

                                                                                                                                                    Returns

                                                                                                                                                    Fires

                                                                                                                                                      Ext.Element
                                                                                                                                                      view source
                                                                                                                                                      ( visMode ) : Ext.Elementchainable
                                                                                                                                                      Sets the element's visibility mode. ...

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

                                                                                                                                                      Available since: 1.1.0

                                                                                                                                                      Parameters

                                                                                                                                                      Returns

                                                                                                                                                      Ext.Element
                                                                                                                                                      view source
                                                                                                                                                      ( visible, [animate] ) : Ext.Elementchainable
                                                                                                                                                      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 the display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property.

                                                                                                                                                      Available since: 1.1.0

                                                                                                                                                      Parameters

                                                                                                                                                      • visible : Boolean

                                                                                                                                                        Whether the element is visible

                                                                                                                                                      • animate : Boolean/Object (optional)

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

                                                                                                                                                      Returns

                                                                                                                                                      Fires

                                                                                                                                                        Ext.Element
                                                                                                                                                        view source
                                                                                                                                                        ( width, [animate] ) : Ext.Elementchainable
                                                                                                                                                        Set the width of this Element. ...

                                                                                                                                                        Set the width of this Element.

                                                                                                                                                        Available since: 1.1.0

                                                                                                                                                        Parameters

                                                                                                                                                        • width : Mixed

                                                                                                                                                          The new width. This may be one of:

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

                                                                                                                                                        • animate : Boolean/Object (optional)

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

                                                                                                                                                        Returns

                                                                                                                                                        Fires

                                                                                                                                                          Ext.Element
                                                                                                                                                          view source
                                                                                                                                                          ( The, [animate] ) : Ext.Elementchainable
                                                                                                                                                          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).

                                                                                                                                                          Available since: 1.1.0

                                                                                                                                                          Parameters

                                                                                                                                                          • The : Number

                                                                                                                                                            X position of the element

                                                                                                                                                          • animate : Boolean/Object (optional)

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

                                                                                                                                                          Returns

                                                                                                                                                          Fires

                                                                                                                                                            Ext.Element
                                                                                                                                                            view source
                                                                                                                                                            ( pos, [animate] ) : Ext.Elementchainable
                                                                                                                                                            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. The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).

                                                                                                                                                            Available since: 1.1.0

                                                                                                                                                            Parameters

                                                                                                                                                            • pos : Array

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

                                                                                                                                                            • animate : Boolean/Object (optional)

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

                                                                                                                                                            Returns

                                                                                                                                                            Fires

                                                                                                                                                              Ext.Element
                                                                                                                                                              view source
                                                                                                                                                              ( The, [animate] ) : Ext.Elementchainable
                                                                                                                                                              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).

                                                                                                                                                              Available since: 1.1.0

                                                                                                                                                              Parameters

                                                                                                                                                              • The : Number

                                                                                                                                                                Y position of the element

                                                                                                                                                              • animate : Boolean/Object (optional)

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

                                                                                                                                                              Returns

                                                                                                                                                              Fires

                                                                                                                                                                Ext.Element
                                                                                                                                                                view source
                                                                                                                                                                ( [animate] ) : Ext.Elementchainable
                                                                                                                                                                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.

                                                                                                                                                                Available since: 1.1.0

                                                                                                                                                                Parameters

                                                                                                                                                                • animate : Boolean/Object (optional)

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

                                                                                                                                                                Returns

                                                                                                                                                                Fires

                                                                                                                                                                  Ext.Element
                                                                                                                                                                  view source
                                                                                                                                                                  ( eventName, [preventDefault] ) : Ext.Elementchainable
                                                                                                                                                                  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

                                                                                                                                                                  Available since: 1.1.0

                                                                                                                                                                  Parameters

                                                                                                                                                                  • eventName : String/Array

                                                                                                                                                                    an event / array of events to stop from bubbling

                                                                                                                                                                  • preventDefault : Boolean (optional)

                                                                                                                                                                    true to prevent the default action too

                                                                                                                                                                  Returns

                                                                                                                                                                  Fires

                                                                                                                                                                    Ext.Element
                                                                                                                                                                    view source
                                                                                                                                                                    ( [animate] ) : Ext.Elementchainable
                                                                                                                                                                    Toggles the element's visibility or display, depending on visibility mode. ...

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

                                                                                                                                                                    Available since: 1.1.0

                                                                                                                                                                    Parameters

                                                                                                                                                                    • animate : Boolean/Object (optional)

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

                                                                                                                                                                    Returns

                                                                                                                                                                    Fires

                                                                                                                                                                      Ext.Element
                                                                                                                                                                      view source
                                                                                                                                                                      ( className ) : Ext.Elementchainable
                                                                                                                                                                      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).

                                                                                                                                                                      Available since: 1.1.0

                                                                                                                                                                      Parameters

                                                                                                                                                                      • className : String

                                                                                                                                                                        The CSS class to toggle

                                                                                                                                                                      Returns

                                                                                                                                                                      Fires

                                                                                                                                                                        Ext.Element
                                                                                                                                                                        view source
                                                                                                                                                                        ( x, [y] ) : Object
                                                                                                                                                                        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

                                                                                                                                                                        Available since: 1.1.0

                                                                                                                                                                        Parameters

                                                                                                                                                                        • x : Number/Array

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

                                                                                                                                                                        • y : Number (optional)

                                                                                                                                                                          The page y, required if x is not an array

                                                                                                                                                                        Returns

                                                                                                                                                                        • Object

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

                                                                                                                                                                        Fires

                                                                                                                                                                          Ext.Element
                                                                                                                                                                          view source
                                                                                                                                                                          ( eventName, fn, scope ) : Ext.Elementchainable
                                                                                                                                                                          Removes an event handler from this element (see removeListener for additional notes). ...

                                                                                                                                                                          Removes an event handler from this element (see removeListener for additional notes).

                                                                                                                                                                          Available since: 1.1.0

                                                                                                                                                                          Parameters

                                                                                                                                                                          • eventName : String

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

                                                                                                                                                                          • fn : Function

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

                                                                                                                                                                          • scope : Object

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

                                                                                                                                                                          Returns

                                                                                                                                                                          Ext.Element
                                                                                                                                                                          view source
                                                                                                                                                                          ( ) : Ext.Elementchainable
                                                                                                                                                                          Return clipping (overflow) to original clipping before clip was called ...

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

                                                                                                                                                                          Available since: 1.1.0

                                                                                                                                                                          Returns

                                                                                                                                                                          Fires

                                                                                                                                                                            Ext.Element
                                                                                                                                                                            view source
                                                                                                                                                                            ( )
                                                                                                                                                                            Removes a previously applied mask. ...

                                                                                                                                                                            Removes a previously applied mask.

                                                                                                                                                                            Available since: 1.1.0

                                                                                                                                                                            Fires

                                                                                                                                                                              Ext.Element
                                                                                                                                                                              view source
                                                                                                                                                                              ( ) : Ext.Elementchainable
                                                                                                                                                                              Disables text selection for this element (normalized across browsers) ...

                                                                                                                                                                              Disables text selection for this element (normalized across browsers)

                                                                                                                                                                              Available since: 1.1.0

                                                                                                                                                                              Returns

                                                                                                                                                                              Fires

                                                                                                                                                                                Ext.Element
                                                                                                                                                                                view source
                                                                                                                                                                                ( selector, [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). This is a shortcut for findParentNode() that always returns an Ext.Element.

                                                                                                                                                                                Available since: 1.1.0

                                                                                                                                                                                Parameters

                                                                                                                                                                                • selector : String

                                                                                                                                                                                  The simple selector to test

                                                                                                                                                                                • maxDepth : Number/Mixed (optional)

                                                                                                                                                                                  The max depth to

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

                                                                                                                                                                                Returns

                                                                                                                                                                                • Ext.Element

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

                                                                                                                                                                                Fires

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( html ) : Ext.Elementchainable
                                                                                                                                                                                  Update the innerHTML of this element ...

                                                                                                                                                                                  Update the innerHTML of this element

                                                                                                                                                                                  Available since: 1.1.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Returns

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

                                                                                                                                                                                  Creates and wraps this element with another element

                                                                                                                                                                                  Available since: 1.1.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  • config : Object (optional)

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

                                                                                                                                                                                  • returnDom : Boolean (optional)

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

                                                                                                                                                                                  Returns

                                                                                                                                                                                  • HTMLElement/Element

                                                                                                                                                                                    The newly created wrapper element

                                                                                                                                                                                  Defined By

                                                                                                                                                                                  Static methods

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( el ) : Elementstatic
                                                                                                                                                                                  Retrieves Ext.Element objects. ...

                                                                                                                                                                                  Retrieves Ext.Element objects.

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

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

                                                                                                                                                                                  Available since: 1.1.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  • el : Mixed

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

                                                                                                                                                                                  Returns

                                                                                                                                                                                  • Element

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

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( selector, [root] ) : CompositeElementLite/CompositeElementstatic
                                                                                                                                                                                  Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in...

                                                                                                                                                                                  Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement through the returned CompositeElement or CompositeElementLite object.

                                                                                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  • selector : String/Array

                                                                                                                                                                                    The CSS selector or an array of elements

                                                                                                                                                                                  • root : HTMLElement/String (optional)

                                                                                                                                                                                    The root element of the query or id of the root

                                                                                                                                                                                  Returns

                                                                                                                                                                                  • CompositeElementLite/CompositeElement
                                                                                                                                                                                  Defined By

                                                                                                                                                                                  Events

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

                                                                                                                                                                                  Where supported. Fires when an attribute has been modified.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Where supported. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Where supported. ...

                                                                                                                                                                                  Where supported. Fires when the subtree is modified.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when an object/image is stopped from loading before completely loaded. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mouse click is detected within the element. ...

                                                                                                                                                                                  Fires when a mouse click is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a right click is detected within the element. ...

                                                                                                                                                                                  Fires when a right click is detected within the element.

                                                                                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mouse double click is detected within the element. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when an object/image/frame cannot be loaded properly. ...

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

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a keydown is detected within the element. ...

                                                                                                                                                                                  Fires when a keydown is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a keypress is detected within the element. ...

                                                                                                                                                                                  Fires when a keypress is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a keyup is detected within the element. ...

                                                                                                                                                                                  Fires when a keyup is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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, objects and images.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mousedown is detected within the element. ...

                                                                                                                                                                                  Fires when a mousedown is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when the mouse enters the element. ...

                                                                                                                                                                                  Fires when the mouse enters the element.

                                                                                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when the mouse leaves the element. ...

                                                                                                                                                                                  Fires when the mouse leaves the element.

                                                                                                                                                                                  Available since: Ext JS 3.4.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mousemove is detected with the element. ...

                                                                                                                                                                                  Fires when a mousemove is detected with the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mouseout is detected with the element. ...

                                                                                                                                                                                  Fires when a mouseout is detected with the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mouseover is detected within the element. ...

                                                                                                                                                                                  Fires when a mouseover is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a mouseup is detected within the element. ...

                                                                                                                                                                                  Fires when a mouseup is detected within the element.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a form is reset. ...

                                                                                                                                                                                  Fires when a form is reset.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a document view is resized. ...

                                                                                                                                                                                  Fires when a document view is resized.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a document view is scrolled. ...

                                                                                                                                                                                  Fires when a document view is scrolled.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  Fires when a form is submitted. ...

                                                                                                                                                                                  Fires when a form is submitted.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters

                                                                                                                                                                                  Ext.Element
                                                                                                                                                                                  view source
                                                                                                                                                                                  ( e, t, o )
                                                                                                                                                                                  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 element or any of its content has been removed.

                                                                                                                                                                                  Available since: 2.3.0

                                                                                                                                                                                  Parameters