/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_Layer({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.Element","uses":[],"html":"
Hierarchy
Ext.ElementExt.LayerFiles
An extended Ext.Element object that supports a shadow and shim, constrain to viewport and\nautomatic maintaining of shadow/shim positions.
\nFalse to disable constrain to viewport (defaults to true)
\nFalse to disable constrain to viewport (defaults to true)
\nDomHelper object config to create element with (defaults to {tag: 'div', cls: 'x-layer'}).
\nDomHelper object config to create element with (defaults to {tag: 'div', cls: 'x-layer'}).
\nTrue to automatically create an Ext.Shadow, or a string indicating the\nshadow's display Ext.Shadow.mode. False to disable the shadow. (defaults to false)
\nNumber of pixels to offset the shadow (defaults to 4)
\nNumber of pixels to offset the shadow (defaults to 4)
\nFalse to disable the iframe shim in browsers which need one (defaults to true)
\nFalse to disable the iframe shim in browsers which need one (defaults to true)
\nDefaults to use css offsets to hide the Layer. Specify true\nto use css style 'display:none;' to hide the Layer.
\ntrue to automatically adjust width and height settings for box-model issues (default to true)
\nDefaults to: true
The default unit to append to CSS values where a unit isn't provided (defaults to px).
\nDefaults to: "px"
An object with config options.
\nUses an existing DOM element. If the element is not found it creates it.
\nOverrides: Ext.Element.constructor
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
\nthis
\nSets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
\nthis
\nSets up event handlers to add and remove a css class when this element has the focus
\nthis
\nSets up event handlers to add and remove a css class when the mouse is over this element
\nthis
\nConvenience method for constructing a KeyMap
\nEither a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:\n{key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}
The function to call
\nThe scope (this
reference) in which the specified function is executed. Defaults to this Element.
The KeyMap created
\nCreates a KeyMap for this element
\nThe KeyMap config. See Ext.KeyMap for more details
\nThe KeyMap created
\nAppends an event handler to this element. The shorthand version on is equivalent.
\nThe name of event to handle.
\nThe handler function the event invokes. This function is passed\nthe following parameters:
The scope (this
reference) in which the handler function is executed.\nIf omitted, defaults to this Element..
An object containing handler configuration properties.\nThis may contain any of the following properties:
this
reference) in which the handler function is executed.\nIf omitted, defaults to this Element.\nCombining Options
\nIn the following examples, the shorthand form on is used rather than the more verbose\naddListener. The two are equivalent. Using the options argument, it is possible to combine different\ntypes of listeners:
\n
\nA delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the\noptions object. The options object is available as the third parameter in the handler function.
el.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});
\n\n\n\nAttaching multiple handlers in 1 call
\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.
\nCode:\n
el.on({\n 'click' : {\n fn: this.onClick,\n scope: this,\n delay: 100\n },\n 'mouseover' : {\n fn: this.onMouseOver,\n scope: this\n },\n 'mouseout' : {\n fn: this.onMouseOut,\n scope: this\n }\n});
\n\nOr a shorthand syntax:
\nCode:\n
\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut,\n scope: this\n});\n
\n\n\ndelegate
\n\n\nThis is a configuration option that you can pass along when registering a handler for\nan event to assist with event delegation. Event delegation is a technique that is used to\nreduce memory consumption and prevent exposure to memory-leaks. By registering an event\nfor a container element as opposed to each element within a container. By setting this\nconfiguration option to a simple selector, the target element will be filtered to look for\na descendant of the target.\nFor example:\n
// using this markup:\n<div id='elId'>\n <p id='p1'>paragraph one</p>\n <p id='p2' class='clickable'>paragraph two</p>\n <p id='p3'>paragraph three</p>\n</div>\n// utilize event delegation to registering just one handler on the container element:\nel = Ext.get('elId');\nel.on(\n 'click',\n function(e,t) {\n // handle click\n console.info(t.id); // 'p2'\n },\n this,\n {\n // filter the target element to be a descendant with the class 'clickable'\n delegate: '.clickable'\n }\n);\n
\n\nthis
\nTest if size has a unit, otherwise appends the default
\nAligns this element with another element relative to the specified anchor points. If the other element is the\ndocument it aligns it to the viewport.\nThe position parameter is optional, and can be specified in any one of the following formats:
\n\nIn addition to the anchor points, the position parameter also supports the \"?\" character. If \"?\" is passed at the end of\nthe position string, the element will attempt to align as specified, but the position will be adjusted to constrain to\nthe viewport if necessary. Note that the element being aligned might be swapped to align to a different position than\nthat specified in order to enforce the viewport constraints.\nFollowing are all of the supported anchor positions:
\n\nValue Description\n----- -----------------------------\ntl The top left corner (default)\nt The center of the top edge\ntr The top right corner\nl The center of the left edge\nc In the center of the element\nr The center of the right edge\nbl The bottom left corner\nb The center of the bottom edge\nbr The bottom right corner\n\n\n\n
Example Usage:
\n\n// align el to other-el using the default positioning (\"tl-bl\", non-constrained)\nel.alignTo(\"other-el\");\n\n// align the top left corner of el with the top right corner of other-el (constrained to viewport)\nel.alignTo(\"other-el\", \"tr?\");\n\n// align the bottom right corner of el with the center left edge of other-el\nel.alignTo(\"other-el\", \"br-l?\");\n\n// align the center of el with the bottom left corner of other-el and\n// adjust the x position by -6 pixels (and the y position by 0)\nel.alignTo(\"other-el\", \"c-bl\", [-6, 0]);\n
\n\nThe element to align to.
\n(optional, defaults to \"tl-bl?\") The position to align to.
\nOffset the positioning by [x, y]
\ntrue for the default animation or a standard Element animation config object
\nthis
\nAnchors an element to another element and realigns it when the window is resized.
\nThe element to align to.
\nThe position to align to.
\nOffset the positioning by [x, y]
\nTrue for the default animation or a standard Element animation config object
\nTrue to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).
\nThe function to call after the animation finishes
\nthis
\nPerform custom animation on this element.
\n\nThe Animation Control Object enables gradual transitions for any member of an\nelement's style object that takes a numeric value including but not limited to\nthese properties:
Each Animation Property is a config object with optional properties:
\n* do not specify both to and by for an animation property
\nThe supported animation types:
var el = Ext.get('complexEl');\nel.animate(\n // animation control object\n {\n borderWidth: {to: 3, from: 0},\n opacity: {to: .3, from: 1},\n height: {to: 50, from: el.getHeight()},\n width: {to: 300, from: el.getWidth()},\n top : {by: - 100, unit: 'px'},\n },\n 0.35, // animation duration\n null, // callback\n 'easeOut', // easing method\n 'run' // animation type ('run','color','motion','scroll')\n);\n
\nAnimates transition of background, text, or border colors.
\nel.animate(\n // animation control object\n {\n color: { to: '#06e' },\n backgroundColor: { to: '#e06' }\n },\n 0.35, // animation duration\n null, // callback\n 'easeOut', // easing method\n 'color' // animation type ('run','color','motion','scroll')\n);\n
\nAnimates the motion of an element to/from specific points using optional bezier\nway points during transit.
\nel.animate(\n // animation control object\n {\n borderWidth: {to: 3, from: 0},\n opacity: {to: .3, from: 1},\n height: {to: 50, from: el.getHeight()},\n width: {to: 300, from: el.getWidth()},\n top : {by: - 100, unit: 'px'},\n points: {\n to: [50, 100], // go to this point\n control: [ // optional bezier way points\n [ 600, 800],\n [-100, 200]\n ]\n }\n },\n 3000, // animation duration (milliseconds!)\n null, // callback\n 'easeOut', // easing method\n 'motion' // animation type ('run','color','motion','scroll')\n);\n
\nAnimate horizontal or vertical scrolling of an overflowing page element.
\nel.animate(\n // animation control object\n {\n scroll: {to: [400, 300]}\n },\n 0.35, // animation duration\n null, // callback\n 'easeOut', // easing method\n 'scroll' // animation type ('run','color','motion','scroll')\n);\n
\nThe animation control args
\nHow long the animation lasts in seconds (defaults to .35)
\nFunction to call when animation completes
\nExt.Fx.easing method to use (defaults to 'easeOut')
\n'run' is the default. Can also be 'color',\n'motion', or 'scroll'
\nthis
\nAppends the passed element(s) to this element
\nthis
\nAppends this element to the passed element
\nThe new parent element
\nthis
\nMore flexible version of setStyle for setting style properties.
\nA style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.
\nthis
\nWraps the specified element with a special 9 element markup/CSS block that renders by default as\na gray container with a gradient background, rounded corners and a 4-way shadow.
\n\n\nThis special markup is used throughout Ext when box wrapping elements (Ext.Button,\nExt.Panel when frame=true, Ext.Window). The markup\nis of this form:
\n\n\n Ext.Element.boxMarkup =\n '<div class=\"{0}-tl\"><div class=\"{0}-tr\"><div class=\"{0}-tc\"></div></div></div>\n <div class=\"{0}-ml\"><div class=\"{0}-mr\"><div class=\"{0}-mc\"></div></div></div>\n <div class=\"{0}-bl\"><div class=\"{0}-br\"><div class=\"{0}-bc\"></div></div></div>';\n
\n\n\nExample usage:
\n\n\n // Basic box wrap\n Ext.get(\"foo\").boxWrap();\n\n // You can also add a custom class and use CSS inheritance rules to customize the box look.\n // 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example\n // for how to create a custom box wrap style.\n Ext.get(\"foo\").boxWrap().addClass(\"x-box-blue\");\n
\n\nA base CSS class to apply to the containing wrapper element\n(defaults to 'x-box'). Note that there are a number of CSS rules that are dependent on\nthis name to make the overall effect work, so if you supply an alternate base class, make sure you\nalso supply all of the necessary rules.
\nThe outermost wrapping element of the created box structure.
\nCenters the Element in either the viewport, or another Element.
\nThe element in which to center the element.
\nSelects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.Element (defaults to false)
\nThe child Ext.Element (or DOM node if returnDom = true)
\nRemoves worthless text nodes
\nBy default the element\nkeeps track if it has been cleaned already so\nyou can call this over and over. However, if you update the element and\nneed to force a reclean, you can pass true.
\nClears any opacity settings from this element. Required in some cases for IE.
\nthis
\nClear positioning back to the default when the document was loaded
\nThe value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.
\nthis
\nStore the current overflow setting and clip overflow on the element - use unclip to remove
\nthis
\nReturns true if this element is an ancestor of the passed element
\nThe element to check
\nTrue if this element is an ancestor of el, else false
\nCreates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
\nDomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.
\na child element of this element
\ntrue to return the dom node instead of creating an Element
\nThe new child element
\nCreates a proxy element of this element
\nThe class name of the proxy element or a DomHelper config object
\nThe element or element id to render the proxy to (defaults to document.body)
\nTrue to align and size the proxy to this element now (defaults to false)
\nThe new proxy element
\nCreates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.
\nThe new shim element
\nSelects a single direct child based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.Element (defaults to false)
\nThe child Ext.Element (or DOM node if returnDom = true)
\nConvenience method for setVisibilityMode(Element.DISPLAY)
\nWhat to set display to when visible
\nthis
\nLooks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
\nThe simple selector to test
\nThe max depth to search as a number or element (defaults to 50 || document.body)
\nTrue to return a Ext.Element object instead of DOM node
\nThe matching DOM node (or null if no match was found)
\nLooks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
\nThe simple selector to test
\nThe max depth to
\n\n search as a number or element (defaults to 10 || document.body)\n
\nTrue to return a Ext.Element object instead of DOM node
\nThe matching DOM node (or null if no match was found)
\nGets the first child, skipping text nodes
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.Element
\nThe first child or null
\nGets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -\nthe dom node can be overwritten by other code. Shorthand of fly
\n\n\nUse this to make one-time references to DOM elements which are not going to be accessed again either by\napplication code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get\nwill be more appropriate to take advantage of the caching provided by the Ext.Element class.
\n\nThe dom node or id
\nAllows for creation of named reusable flyweights to prevent conflicts\n(e.g. internally Ext uses \"_global\")
\nThe shared Element object (or null if no matching element was found)
\nTries to focus the element. Any exceptions are caught and ignored.
\nMilliseconds to defer the focus
\nthis
\nGets the x,y coordinates to align this element with another element. See alignTo for more info on the\nsupported position values.
\nThe element to align to.
\n(optional, defaults to \"tl-bl?\") The position to align to.
\nOffset the positioning by [x, y]
\n[x, y]
\nGets the x,y coordinates specified by the anchor position on the element.
\nThe specified anchor position (defaults to \"c\"). See alignTo\nfor details on supported anchor positions.
\nTrue to get the local (element top/left-relative) anchor position instead\nof page coordinates
\nAn object containing the size to use for calculating anchor position\n{width: (target width), height: (target height)} (defaults to the element's current size)
\n[x, y] An array containing the element's x and y coordinates
\nGets the bottom Y coordinate of the element (element Y position + element height)
\nTrue to get the local css position instead of page coordinate
\nReturn an object defining the area of this Element which can be passed to setBox to\nset another Element's size/location to match this element.
\nIf true a box for the content of the element is returned.
\nIf true the element's left and top are returned instead of page x/y.
\nbox An object in the format
\n\n{\n x: <Element's X position>,\n y: <Element's Y position>,\n width: <Element's width>,\n height: <Element's height>,\n bottom: <Element's lower bound>,\n right: <Element's rightmost bound>\n}\n
\n\n\nThe returned object may also be addressed as an Array where index 0 contains the X position\nand index 1 contains the Y position. So the result may also be used for setXY
\nReturn the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values\nare convert to standard 6 digit hex color.
\nReturns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements\nif a height has not been set using CSS.
\nReturns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements\nif a width has not been set using CSS.
\nReturns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()
\n\n for more information about the sides.\n
\n\n@param {String} sides
\nReturns the offset height of the element
\ntrue to get the height minus borders and padding
\nThe element's height
\nGets the left X coordinate
\nTrue to get the local css position instead of page coordinate
\nReturns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,\nthen it returns the calculated width of the sides (see getPadding)
\nAny combination of l, r, t, b to get the sum of those sides
\nReturns 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.
\nThe element to get the offsets from.
\nThe XY page offsets (e.g. [100, -200])
\nGets an object with all CSS positioning properties. Useful along with setPostioning to get\nsnapshot before performing an update and then restoring the element.
\nReturns the region of the given element.\nThe element must be part of the DOM tree to have a region (display:none or elements not appended return false).
\nA Ext.lib.Region containing \"top, left, bottom, right\" member data.
\nGets the right X coordinate of the element (element X position + element width)
\nTrue to get the local css position instead of page coordinate
\nReturns the current scroll position of the element.
\nAn object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}
\nReturns the size of the element.
\ntrue to get the width/size minus borders and padding
\nAn object containing the element's size {width: (element width), height: (element height)}
\nReturns the dimensions of the element available to lay content out in.
\n\ngetStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth.\nTo obtain the size excluding scrollbars, use getViewSize\n\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.\n\n
Returns an object with properties matching the styles requested.\nFor example, el.getStyles('color', 'font-size', 'width') might return\n{'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}.
\nThe style object
\nReturns the width in pixels of the passed text, or the width of the text in this Element. getTextWidth
\nThe text to measure. Defaults to the innerHTML of the element.
\nThe minumum value to return.
\nThe maximum value to return.
\nThe text width in pixels.
\nGets the top Y coordinate
\nTrue to get the local css position instead of page coordinate
\nReturns the dimensions of the element available to lay content out in.
\n
If the element (or any ancestor element) has CSS style display : none
, the dimensions will be zero.
var vpSize = Ext.getBody().getViewSize();\n\n // all Windows created afterwards will have a default value of 90% height and 95% width\n Ext.Window.override({\n width: vpSize.width * 0.9,\n height: vpSize.height * 0.95\n });\n // To handle window resizing you would have to hook onto onWindowResize.\n
\n\ngetViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.\nTo obtain the size including scrollbars, use getStyleSize\n\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.\n\nReturns the offset width of the element
\ntrue to get the width minus borders and padding
\nThe element's width
\nGets 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).
\nThe X position of the element
\nGets 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).
\nThe XY position of the element
\nGets 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).
\nThe Y position of the element
\nChecks if the specified CSS class exists on this element's DOM node.
\nThe CSS class to check for
\nTrue if the class exists, else false
\nDetermine if the Element has a relevant height and width available based\nupon current logical visibility state
\nHide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets up event handlers to call the passed functions when the mouse is moved into and out of the Element.
\nThe function to call when the mouse enters the Element.
\nThe function to call when the mouse leaves the Element.
\nThe scope (this
reference) in which the functions are executed. Defaults to the Element's DOM element.
Options for the listener. See the <tt>options</tt> parameter.
\nthis
\nInitializes a Ext.dd.DDProxy object for this element.
\nThe group the DDProxy object is member of
\nThe DDProxy config object
\nAn object containing methods to override/implement on the DDProxy object
\nThe DDProxy object
\nInitializes a Ext.dd.DDTarget object for this element.
\nThe group the DDTarget object is member of
\nThe DDTarget config object
\nAn object containing methods to override/implement on the DDTarget object
\nThe DDTarget object
\nInserts this element after the passed element in the DOM
\nThe element to insert after
\nthis
\nInserts this element before the passed element in the DOM
\nThe element before which this element will be inserted
\nthis
\nInserts (or creates) an element (or DomHelper config) as the first child of this element
\nThe id or element to insert or a DomHelper config to create and insert
\nThe new child
\nInserts an html fragment into this element
\nWhere to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.
\nThe HTML fragment
\nTrue to return an Ext.Element (defaults to false)
\nThe inserted node (or nearest related if more than 1 inserted)
\nInserts (or creates) the passed element (or DomHelper config) as a sibling of this element
\nThe id, element to insert or a DomHelper config to create and insert or an array of any of those.
\n'before' or 'after' defaults to before
\nTrue to return the raw DOM element instead of Ext.Element
\nThe inserted Element. If an array is passed, the last inserted element is returned.
\nReturns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)
\nThe simple selector to test
\nTrue if this element matches the selector, else false
\nTests various css rules/browsers to determine if this element uses a border box
\nReturns true if display is not \"none\"
\nReturns true if this element is masked
\nReturns true if this element is scrollable.
\nChecks whether the element is currently visible using both visibility and display properties.
\nTrue if the element is currently visible, else false
\nGets the last child, skipping text nodes
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.Element
\nThe last child or null
\nUpdates the innerHTML of this Element\nfrom a specified URL. Note that this is subject to the Same Origin Policy
\n\n\nUpdating innerHTML of an element will not execute embedded <script> elements. This is a browser restriction.
\n\n. Either a sring containing the URL from which to load the HTML, or an Ext.Ajax.request options object specifying\nexactly how to request the HTML.
\nthis
\nPuts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.
\nA message to display in the mask
\nA css class to apply to the msg element
\nThe mask element
\nMove this element relative to its current position.
\nPossible values are: \"l\" (or \"left\"), \"r\" (or \"right\"), \"t\" (or \"top\", or \"up\"), \"b\" (or \"bottom\", or \"down\").
\nHow far to move the element in pixels
\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nGets the next sibling, skipping text nodes
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.Element
\nThe next sibling or null
\nAppends an event handler (shorthand for addListener).
\nThe name of event to handle.
\nThe handler function the event invokes.
\nThe scope (this
reference) in which the handler function is executed.
An object containing standard addListener options
\nGets the parent node for this element, optionally chaining up trying to match a selector
\nFind a parent node that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.Element
\nThe parent node or null
\nInitializes positioning on this element. If a desired position is not passed, it will make the\nthe element positioned relative IF it is not already positioned.
\nGets the previous sibling, skipping text nodes
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.Element
\nThe previous sibling or null
\nRecursively removes all previous added listeners from this element and its children
\nthis
\nAdds one or more CSS classes to this element and removes the same class(es) from all siblings.
\nthis
\nCreate an event handler on this element such that when the event fires and is handled by this element,\nit will be relayed to another object (i.e., fired again as if it originated from that object instead).
\nThe type of event to relay
\nAny object that extends Ext.util.Observable that will provide the context\nfor firing the relayed event
\nRemoves this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
\n\nRemoves an event handler from this element. The shorthand version un is equivalent.\nNote: if a scope was explicitly specified when adding the\nlistener, the same scope must be specified here.\nExample:
\n\nel.removeListener('click', this.handlerFn);\n// or\nel.un('click', this.handlerFn);\n
\n\nThe name of the event from which to remove the handler.
\nThe handler function to remove. This must be a reference to the function passed into the addListener call.
\nIf a scope (this
reference) was specified when the listener was added,\nthen this must refer to the same object.
this
\nReplaces the passed element with this element
\nThe element to replace
\nthis
\nReplaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.
\nthis
\nReplaces this element with the passed element
\nThe new element or a DomHelper config of an element to create
\nthis
\nScrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.
\nPossible values are: \"l\" (or \"left\"), \"r\" (or \"right\"), \"t\" (or \"top\", or \"up\"), \"b\" (or \"bottom\", or \"down\").
\nHow far to scroll the element in pixels
\ntrue for the default animation or a standard Element animation config object
\nReturns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go.
\nScrolls this element into view within the passed container.
\nThe container element to scroll (defaults to document.body). Should be a\nstring (id), dom node, or Ext.Element.
\nFalse to disable horizontal scroll (defaults to true)
\nthis
\nScrolls 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().
\nEither \"left\" for scrollLeft values or \"top\" for scrollTop values.
\nThe new scroll value.
\nthis
\nCreates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nThe composite element
\nSets the passed attributes as attributes of this element (a style attribute can be a string, object or function)
\nThe object with the attributes
\nfalse to override the default setAttribute to use expandos.
\nthis
\nSets the element's CSS bottom style.
\nThe bottom CSS property value
\nthis
\nSets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.
\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nThe new width. This may be one of:
The new height. This may be one of:
true for the default animation or a standard Element animation config object
\nthis
\nSets 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.
\nThe box to fill {x, y, width, height}
\nWhether to adjust for box-model issues automatically
\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets the CSS display property. Uses originalDisplay if the specified value is a boolean true.
\nBoolean value to display the element using its default display, or a string to set the display directly.
\nthis
\nSet the height of this Element.
\n\n// change the height to 200px and animate with default configuration\nExt.fly('elementId').setHeight(200, true);\n\n// change the height to 150px and animate with a custom configuration\nExt.fly('elId').setHeight(150, {\n duration : .5, // animation will have a duration of .5 seconds\n // will change the content to \"finished\"\n callback: function(){ this.update(\"finished\"); }\n});\n
\n\nThe new height. This may be one of:
true for the default animation or a standard Element animation config object
\nthis
\nSets the element's left position directly using CSS style (instead of setX).
\nThe left CSS property value
\nthis
\nSets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nSet the opacity of the element
\nThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
\na standard Element animation config object or true for\nthe default animation ({duration: .35, easing: 'easeIn'})
\nthis
\nSet positioning with an object returned by getPositioning().
\nthis
\nSets the element's position and size the specified region. If animation is true then width, height, x and y will be animated concurrently.
\nThe region to fill
\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets the element's CSS right style.
\nThe right CSS property value
\nthis
\nSet the size of this Element. If animation is true, both width and height will be animated concurrently.
\nThe new width. This may be one of:
{width: widthValue, height: heightValue}
.The new height. This may be one of:
true for the default animation or a standard Element animation config object
\nthis
\nWrapper for setting style properties, also takes single object parameter of multiple styles.
\nThe style property to be set, or an object of multiple styles.
\nThe value to apply to the given property, or null if an object was passed.
\nthis
\nSets the element's top position directly using CSS style (instead of setY).
\nThe top CSS property value
\nthis
\nSets the element's visibility mode. When setVisible() is called it\nwill use this to determine whether to set the visibility or the display property.
\nthis
\nSets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use\nthe display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property.
\nWhether the element is visible
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nSet the width of this Element.
\nThe new width. This may be one of:
true for the default animation or a standard Element animation config object
\nthis
\nSets 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).
\nX position of the element
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nSets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
\nContains X & Y [x, y] values for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nSets 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).
\nY position of the element
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nSets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically\nincremented by two more than the value passed in so that it always shows above any shadow or shim (the shadow\nelement, if any, will be assigned z-index + 1, and the shim element, if any, will be assigned the unmodified z-index).
\nThe new z-index to set
\nThe Layer
\nShow this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nStops the specified event(s) from bubbling and optionally prevents the default action
\nan event / array of events to stop from bubbling
\ntrue to prevent the default action too
\nthis
\nToggles the element's visibility or display, depending on visibility mode.
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nToggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
\nThe CSS class to toggle
\nthis
\nTranslates the passed page coordinates into left/top css values for this element
\nThe page x or an array containing [x, y]
\nThe page y, required if x is not an array
\nAn object with left and top properties. e.g. {left: (value), top: (value)}
\nRemoves an event handler from this element (see removeListener for additional notes).
\nThe name of the event from which to remove the handler.
\nThe handler function to remove. This must be a reference to the function passed into the addListener call.
\nIf a scope (this
reference) was specified when the listener was added,\nthen this must refer to the same object.
this
\nWalks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).\nThis is a shortcut for findParentNode() that always returns an Ext.Element.
\nThe simple selector to test
\nThe max depth to
\n\n search as a number or element (defaults to 10 || document.body)\n
\nThe matching DOM node (or null if no match was found)
\nCreates and wraps this element with another element
\nDomHelper element config object for the wrapper element or null for an empty div
\nTrue to return the raw DOM element instead of Ext.Element
\nThe newly created wrapper element
\nWhere supported. Fires when an element is activated, for instance, through a mouse click or a keypress.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when an attribute has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when the character data has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Similar to HTML focus event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Similar to HTML blur event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when a node has been added as a child of another node.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when a node is being inserted into a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when a descendant node of the element is removed.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when a node is being removed from a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nWhere supported. Fires when the subtree is modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when an object/image is stopped from loading before completely loaded.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when an element loses focus either via the pointing device or by tabbing navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a control loses the input focus and its value has been modified since gaining focus.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mouse click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mouse double click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when an object/image/frame cannot be loaded properly.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when an element receives focus either via the pointing device or by tab navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a keydown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a keypress is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a keyup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when the user agent finishes loading all content within the element. Only supported by window, frames, objects and images.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mousedown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when the mouse enters the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when the mouse leaves the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mousemove is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mouseout is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mouseover is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a mouseup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a form is reset.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a document view is resized.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a document view is scrolled.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a user selects some text in a text field, including input and textarea.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires when a form is submitted.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\nFires 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.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options configuration passed to the addListener call.
\n