-<div xmlns:ext="http://www.extjs.com" class="body-wrap"><div class="inheritance res-block"><pre class="res-block-inner"><a href="output/Ext.Element.html" ext:member="" ext:cls="Ext.Element">Element</a> <img src="resources/elbow-end.gif">Layer</pre></div><h1>Class <a href="source/Layer.html#cls-Ext.Layer">Ext.Layer</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info">Layer.js</td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/Layer.html#cls-Ext.Layer">Layer</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info"><a href="output/Ext.Element.html" ext:cls="Ext.Element" ext:member="">Element</a></td></tr></table><div class="description">An extended <a href="output/Ext.Element.html" ext:cls="Ext.Element">Ext.Element</a> object that supports a shadow and shim, constrain to viewport and
+<div class="body-wrap" xmlns:ext="http://www.extjs.com"><div class="top-tools"><a class="inner-link" href="#Ext.Layer-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.Layer-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.Layer-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="inner-link" href="#Ext.Layer-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> <a class="bookmark" href="../docs/?class=Ext.Layer"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div><div class="inheritance res-block"><pre class="res-block-inner"><a href="output/Ext.Element.html" ext:member="" ext:cls="Ext.Element">Element</a> <img src="resources/elbow-end.gif">Layer</pre></div><h1>Class <a href="source/Layer.html#cls-Ext.Layer">Ext.Layer</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr><tr><td class="label">Defined In:</td><td class="hd-info"><a href="source/Layer.html#cls-Ext.Layer">Layer.js</a></td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/Layer.html#cls-Ext.Layer">Layer</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info"><a href="output/Ext.Element.html" ext:cls="Ext.Element" ext:member="">Element</a></td></tr></table><div class="description">An extended <a href="output/Ext.Element.html" ext:cls="Ext.Element">Ext.Element</a> object that supports a shadow and shim, constrain to viewport and
automatic maintaining of shadow/shim positions.</div><div class="hr"></div><a id="Ext.Layer-configs"></a><h2>Config Options</h2><table cellspacing="0" class="member-table"><tbody><tr><th colspan="2" class="sig-header">Config Options</th><th class="msource-header">Defined By</th></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-cls"></a><b><a href="source/Layer.html#cfg-Ext.Layer-cls">cls</a></b> : String<div class="mdesc">CSS class to add to the element</div></td><td class="msource">Layer</td></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-constrain"></a><b><a href="source/Layer.html#cfg-Ext.Layer-constrain">constrain</a></b> : Boolean<div class="mdesc">False to disable constrain to viewport (defaults to true)</div></td><td class="msource">Layer</td></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-dh"></a><b><a href="source/Layer.html#cfg-Ext.Layer-dh">dh</a></b> : Object<div class="mdesc">DomHelper object config to create element with (defaults to {tag: 'div', cls: 'x-layer'}).</div></td><td class="msource">Layer</td></tr><tr class="config-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-shadow"></a><b><a href="source/Layer.html#cfg-Ext.Layer-shadow">shadow</a></b> : String/Boolean<div class="mdesc"><div class="short">True to automatically create an Ext.Shadow, or a string indicating the
shadow's display Ext.Shadow.mode. False to dis...</div><div class="long">True to automatically create an <a href="output/Ext.Shadow.html" ext:cls="Ext.Shadow">Ext.Shadow</a>, or a string indicating the
shadow's display <a href="output/Ext.Shadow.html#Ext.Shadow-mode" ext:member="mode" ext:cls="Ext.Shadow">Ext.Shadow.mode</a>. False to disable the shadow. (defaults to false)</div></div></td><td class="msource">Layer</td></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-shadowOffset"></a><b><a href="source/Layer.html#cfg-Ext.Layer-shadowOffset">shadowOffset</a></b> : Number<div class="mdesc">Number of pixels to offset the shadow (defaults to 4)</div></td><td class="msource">Layer</td></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-shim"></a><b><a href="source/Layer.html#cfg-Ext.Layer-shim">shim</a></b> : Boolean<div class="mdesc">False to disable the iframe shim in browsers which need one (defaults to true)</div></td><td class="msource">Layer</td></tr><tr class="config-row "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-useDisplay"></a><b><a href="source/Layer.html#cfg-Ext.Layer-useDisplay">useDisplay</a></b> : Boolean<div class="mdesc">Defaults to use css offsets to hide the Layer. Specify <tt>true</tt>
:
Ext.Element<div class="mdesc"><div class="short">Sets up event handlers to add and remove a css class when the mouse is over this element</div><div class="long">Sets up event handlers to add and remove a css class when the mouse is over this element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>className</code> : String<div class="sub-desc"></div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#addClassOnOver" ext:member="#addClassOnOver" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-addKeyListener"></a><b><a href="source/Element.keys.html#method-Ext.Element-addKeyListener">addKeyListener</a></b>( <code>Number/Array/Object/String key</code>, <code>Function fn</code>, <span title="Optional" class="optional">[<code>Object scope</code>]</span> )
:
- Ext.KeyMap<div class="mdesc"><div class="short">Convenience method for constructing a KeyMap</div><div class="long">Convenience method for constructing a KeyMap<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>key</code> : Number/Array/Object/String<div class="sub-desc">Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:\r
+ Ext.KeyMap<div class="mdesc"><div class="short">Convenience method for constructing a KeyMap</div><div class="long">Convenience method for constructing a KeyMap<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>key</code> : Number/Array/Object/String<div class="sub-desc">Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:
<code>{key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}</code></div></li><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (<code>this</code> reference) in which the specified function is executed. Defaults to this Element.</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#addKeyListener" ext:member="#addKeyListener" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-addKeyMap"></a><b><a href="source/Element.keys.html#method-Ext.Element-addKeyMap">addKeyMap</a></b>( <code>Object config</code> )
:
Ext.KeyMap<div class="mdesc"><div class="short">Creates a KeyMap for this element</div><div class="long">Creates a KeyMap for this element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>config</code> : Object<div class="sub-desc">The KeyMap config. See <a href="output/Ext.KeyMap.html" ext:cls="Ext.KeyMap">Ext.KeyMap</a> for more details</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#addKeyMap" ext:member="#addKeyMap" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-addListener"></a><b><a href="source/Element.html#method-Ext.Element-addListener">addListener</a></b>( <code>String eventName</code>, <code>Function fn</code>, <span title="Optional" class="optional">[<code>Object scope</code>]</span>, <span title="Optional" class="optional">[<code>Object options</code>]</span> )
Ext.Element<div class="mdesc"><div class="short">Anchors an element to another element and realigns it when the window is resized.</div><div class="long">Anchors an element to another element and realigns it when the window is resized.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>element</code> : Mixed<div class="sub-desc">The element to align to.</div></li><li><code>position</code> : String<div class="sub-desc">The position to align to.</div></li><li><code>offsets</code> : Array<div class="sub-desc">(optional) Offset the positioning by [x, y]</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation or a standard Element animation config object</div></li><li><code>monitorScroll</code> : Boolean/Number<div class="sub-desc">(optional) True to monitor body scroll and reposition. If this parameter
is a number, it is used as the buffer delay (defaults to 50ms).</div></li><li><code>callback</code> : Function<div class="sub-desc">The function to call after the animation finishes</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#anchorTo" ext:member="#anchorTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-animate"></a><b><a href="source/Element.fx.html#method-Ext.Element-animate">animate</a></b>( <code>Object args</code>, <span title="Optional" class="optional">[<code>Float duration</code>]</span>, <span title="Optional" class="optional">[<code>Function onComplete</code>]</span>, <span title="Optional" class="optional">[<code>String easing</code>]</span>, <span title="Optional" class="optional">[<code>String animType</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Perform custom animation on this element.
-<ul class="mdetail-params">
-Animation Properties
-The Animation Control O...</div><div class="long">Perform custom animation on this element.\r
-<div><ul class="mdetail-params">\r
-<li><u>Animation Properties</u></li>\r
-<p>The Animation Control Object enables gradual transitions for any member of an\r
-element's style object that takes a numeric value including but not limited to\r
-these properties:</p><div><ul class="mdetail-params">\r
-<li><tt>bottom, top, left, right</tt></li>\r
-<li><tt>height, width</tt></li>\r
-<li><tt>margin, padding</tt></li>\r
-<li><tt>borderWidth</tt></li>\r
-<li><tt>opacity</tt></li>\r
-<li><tt>fontSize</tt></li>\r
-<li><tt>lineHeight</tt></li>\r
-</ul></div>\r
-<li><u>Animation Property Attributes</u></li>\r
-<p>Each Animation Property is a config object with optional properties:</p>\r
-<div><ul class="mdetail-params">\r
-<li><tt>by</tt>* : relative change - start at current value, change by this value</li>\r
-<li><tt>from</tt> : ignore current value, start from this value</li>\r
-<li><tt>to</tt>* : start at current value, go to this value</li>\r
-<li><tt>unit</tt> : any allowable unit specification</li>\r
-<p>* do not specify both <tt>to</tt> and <tt>by</tt> for an animation property</p>\r
-</ul></div>\r
-<li><u>Animation Types</u></li>\r
-<p>The supported animation types:</p><div><ul class="mdetail-params">\r
-<li><tt>'run'</tt> : Default\r
-<pre><code><b>var</b> el = Ext.get(<em>'complexEl'</em>);\r
-el.animate(\r
- <i>// animation control object\r</i>
- {\r
- borderWidth: {to: 3, from: 0},\r
- opacity: {to: .3, from: 1},\r
- height: {to: 50, from: el.getHeight()},\r
- width: {to: 300, from: el.getWidth()},\r
- top : {by: - 100, unit: <em>'px'</em>},\r
- },\r
- 0.35, <i>// animation duration\r</i>
- null, <i>// callback\r</i>
- <em>'easeOut'</em>, <i>// easing method\r</i>
- <em>'run'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>) \r</i>
-);</code></pre>\r
-</li>\r
-<li><tt>'color'</tt>\r
-<p>Animates transition of background, text, or border colors.</p>\r
-<pre><code>el.animate(\r
- <i>// animation control object\r</i>
- {\r
- color: { to: <em>'#06e'</em> },\r
- backgroundColor: { to: <em>'#e06'</em> }\r
- },\r
- 0.35, <i>// animation duration\r</i>
- null, <i>// callback\r</i>
- <em>'easeOut'</em>, <i>// easing method\r</i>
- <em>'color'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>) \r</i>
-);</code></pre> \r
-</li>\r
-<li><tt>'motion'</tt>\r
-<p>Animates the motion of an element to/from specific points using optional bezier\r
-way points during transit.</p>\r
-<pre><code>el.animate(\r
- <i>// animation control object\r</i>
- {\r
- borderWidth: {to: 3, from: 0},\r
- opacity: {to: .3, from: 1},\r
- height: {to: 50, from: el.getHeight()},\r
- width: {to: 300, from: el.getWidth()},\r
- top : {by: - 100, unit: <em>'px'</em>},\r
- points: {\r
- to: [50, 100], <i>// go to this point\r</i>
- control: [ <i>// optional bezier way points\r</i>
- [ 600, 800],\r
- [-100, 200]\r
- ]\r
- }\r
- },\r
- 3000, <i>// animation duration (milliseconds!)\r</i>
- null, <i>// callback\r</i>
- <em>'easeOut'</em>, <i>// easing method\r</i>
- <em>'motion'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>) \r</i>
-);</code></pre> \r
-</li>\r
-<li><tt>'scroll'</tt>\r
-<p>Animate horizontal or vertical scrolling of an overflowing page element.</p>\r
-<pre><code>el.animate(\r
- <i>// animation control object\r</i>
- {\r
- scroll: {to: [400, 300]}\r
- },\r
- 0.35, <i>// animation duration\r</i>
- null, <i>// callback\r</i>
- <em>'easeOut'</em>, <i>// easing method\r</i>
- <em>'scroll'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>) \r</i>
-);</code></pre> \r
-</li>\r
-</ul></div>\r
-</ul></div><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>args</code> : Object<div class="sub-desc">The animation control args</div></li><li><code>duration</code> : Float<div class="sub-desc">(optional) How long the animation lasts in seconds (defaults to <tt>.35</tt>)</div></li><li><code>onComplete</code> : Function<div class="sub-desc">(optional) Function to call when animation completes</div></li><li><code>easing</code> : String<div class="sub-desc">(optional) <a href="output/Ext.Fx.html#Ext.Fx-easing" ext:member="easing" ext:cls="Ext.Fx">Ext.Fx.easing</a> method to use (defaults to <tt>'easeOut'</tt>)</div></li><li><code>animType</code> : String<div class="sub-desc">(optional) <tt>'run'</tt> is the default. Can also be <tt>'color'</tt>,\r
+ Ext.Element<div class="mdesc"><div class="short">Perform custom animation on this element.
+<ul class="mdetail-params">
+Animation Properties
+The Animation Control Obje...</div><div class="long">Perform custom animation on this element.
+<div><ul class="mdetail-params">
+<li><u>Animation Properties</u></li>
+<p>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:</p><div><ul class="mdetail-params">
+<li><tt>bottom, top, left, right</tt></li>
+<li><tt>height, width</tt></li>
+<li><tt>margin, padding</tt></li>
+<li><tt>borderWidth</tt></li>
+<li><tt>opacity</tt></li>
+<li><tt>fontSize</tt></li>
+<li><tt>lineHeight</tt></li>
+</ul></div>
+<li><u>Animation Property Attributes</u></li>
+<p>Each Animation Property is a config object with optional properties:</p>
+<div><ul class="mdetail-params">
+<li><tt>by</tt>* : relative change - start at current value, change by this value</li>
+<li><tt>from</tt> : ignore current value, start from this value</li>
+<li><tt>to</tt>* : start at current value, go to this value</li>
+<li><tt>unit</tt> : any allowable unit specification</li>
+<p>* do not specify both <tt>to</tt> and <tt>by</tt> for an animation property</p>
+</ul></div>
+<li><u>Animation Types</u></li>
+<p>The supported animation types:</p><div><ul class="mdetail-params">
+<li><tt>'run'</tt> : Default
+<pre><code><b>var</b> el = Ext.get(<em>'complexEl'</em>);
+el.animate(
+ <i>// animation control object</i>
+ {
+ 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: <em>'px'</em>},
+ },
+ 0.35, <i>// animation duration</i>
+ null, <i>// callback</i>
+ <em>'easeOut'</em>, <i>// easing method</i>
+ <em>'run'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>)</i>
+);</code></pre>
+</li>
+<li><tt>'color'</tt>
+<p>Animates transition of background, text, or border colors.</p>
+<pre><code>el.animate(
+ <i>// animation control object</i>
+ {
+ color: { to: <em>'#06e'</em> },
+ backgroundColor: { to: <em>'#e06'</em> }
+ },
+ 0.35, <i>// animation duration</i>
+ null, <i>// callback</i>
+ <em>'easeOut'</em>, <i>// easing method</i>
+ <em>'color'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>)</i>
+);</code></pre>
+</li>
+<li><tt>'motion'</tt>
+<p>Animates the motion of an element to/from specific points using optional bezier
+way points during transit.</p>
+<pre><code>el.animate(
+ <i>// animation control object</i>
+ {
+ 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: <em>'px'</em>},
+ points: {
+ to: [50, 100], <i>// go to this point</i>
+ control: [ <i>// optional bezier way points</i>
+ [ 600, 800],
+ [-100, 200]
+ ]
+ }
+ },
+ 3000, <i>// animation duration (milliseconds!)</i>
+ null, <i>// callback</i>
+ <em>'easeOut'</em>, <i>// easing method</i>
+ <em>'motion'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>)</i>
+);</code></pre>
+</li>
+<li><tt>'scroll'</tt>
+<p>Animate horizontal or vertical scrolling of an overflowing page element.</p>
+<pre><code>el.animate(
+ <i>// animation control object</i>
+ {
+ scroll: {to: [400, 300]}
+ },
+ 0.35, <i>// animation duration</i>
+ null, <i>// callback</i>
+ <em>'easeOut'</em>, <i>// easing method</i>
+ <em>'scroll'</em> <i>// animation type (<em>'run'</em>,<em>'color'</em>,<em>'motion'</em>,<em>'scroll'</em>)</i>
+);</code></pre>
+</li>
+</ul></div>
+</ul></div><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>args</code> : Object<div class="sub-desc">The animation control args</div></li><li><code>duration</code> : Float<div class="sub-desc">(optional) How long the animation lasts in seconds (defaults to <tt>.35</tt>)</div></li><li><code>onComplete</code> : Function<div class="sub-desc">(optional) Function to call when animation completes</div></li><li><code>easing</code> : String<div class="sub-desc">(optional) <a href="output/Ext.Fx.html#Ext.Fx-easing" ext:member="easing" ext:cls="Ext.Fx">Ext.Fx.easing</a> method to use (defaults to <tt>'easeOut'</tt>)</div></li><li><code>animType</code> : String<div class="sub-desc">(optional) <tt>'run'</tt> is the default. Can also be <tt>'color'</tt>,
<tt>'motion'</tt>, or <tt>'scroll'</tt></div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#animate" ext:member="#animate" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-appendChild"></a><b><a href="source/Element.insertion.html#method-Ext.Element-appendChild">appendChild</a></b>( <code>String/HTMLElement/Array/Element/CompositeElement el</code> )
:
Ext.Element<div class="mdesc"><div class="short">Appends the passed element(s) to this element</div><div class="long">Appends the passed element(s) to this element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : String/HTMLElement/Array/Element/CompositeElement<div class="sub-desc"></div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#appendChild" ext:member="#appendChild" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-appendTo"></a><b><a href="source/Element.insertion.html#method-Ext.Element-appendTo">appendTo</a></b>( <code>Mixed el</code> )
:
Ext.Element<div class="mdesc"><div class="short">Appends this element to the passed element</div><div class="long">Appends this element to the passed element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : Mixed<div class="sub-desc">The new parent element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#appendTo" ext:member="#appendTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-applyStyles"></a><b><a href="source/Element.style-more.html#method-Ext.Element-applyStyles">applyStyles</a></b>( <code>String/Object/Function styles</code> )
:
- Ext.Element<div class="mdesc"><div class="short">More flexible version of setStyle for setting style properties.</div><div class="long">More flexible version of <a href="output/Ext.Element.html#Ext.Element-setStyle" ext:member="setStyle" ext:cls="Ext.Element">setStyle</a> for setting style properties.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>styles</code> : String/Object/Function<div class="sub-desc">A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or\r
+ Ext.Element<div class="mdesc"><div class="short">More flexible version of setStyle for setting style properties.</div><div class="long">More flexible version of <a href="output/Ext.Element.html#Ext.Element-setStyle" ext:member="setStyle" ext:cls="Ext.Element">setStyle</a> for setting style properties.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>styles</code> : String/Object/Function<div class="sub-desc">A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or
a function which returns such a specification.</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#applyStyles" ext:member="#applyStyles" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-autoHeight"></a><b><a href="source/Element.legacy.html#method-Ext.Element-autoHeight">autoHeight</a></b>( <span title="Optional" class="optional">[<code>Boolean animate</code>]</span>, <span title="Optional" class="optional">[<code>Float duration</code>]</span>, <span title="Optional" class="optional">[<code>Function onComplete</code>]</span>, <span title="Optional" class="optional">[<code>String easing</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Measures the element's content height and updates height to match. Note: this function uses setTimeout so
-the new he...</div><div class="long">Measures the element's content height and updates height to match. Note: this function uses setTimeout so\r
+ Ext.Element<div class="mdesc"><div class="short">Measures the element's content height and updates height to match. Note: this function uses setTimeout so
+the new hei...</div><div class="long">Measures the element's content height and updates height to match. Note: this function uses setTimeout so
the new height may not be available immediately.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>animate</code> : Boolean<div class="sub-desc">(optional) Animate the transition (defaults to false)</div></li><li><code>duration</code> : Float<div class="sub-desc">(optional) Length of the animation in seconds (defaults to .35)</div></li><li><code>onComplete</code> : Function<div class="sub-desc">(optional) Function to call when animation completes</div></li><li><code>easing</code> : String<div class="sub-desc">(optional) Easing method to use (defaults to easeOut)</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#autoHeight" ext:member="#autoHeight" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-blur"></a><b><a href="source/Element.html#method-Ext.Element-blur">blur</a></b>()
:
Ext.Element<div class="mdesc"><div class="short">Tries to blur the element. Any exceptions are caught and ignored.</div><div class="long">Tries to blur the element. Any exceptions are caught and ignored.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#blur" ext:member="#blur" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-boxWrap"></a><b><a href="source/Element.style-more.html#method-Ext.Element-boxWrap">boxWrap</a></b>( <span title="Optional" class="optional">[<code>String class</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Wraps the specified element with a special 9 element markup/CSS block that renders by default as
-a gray container wi...</div><div class="long"><p>Wraps the specified element with a special 9 element markup/CSS block that renders by default as\r
-a gray container with a gradient background, rounded corners and a 4-way shadow.</p>\r
-<p>This special markup is used throughout Ext when box wrapping elements (<a href="output/Ext.Button.html" ext:cls="Ext.Button">Ext.Button</a>,\r
-<a href="output/Ext.Panel.html" ext:cls="Ext.Panel">Ext.Panel</a> when <tt><a href="output/Ext.Panel.html#Ext.Panel-frame" ext:member="frame" ext:cls="Ext.Panel">frame=true</a></tt>, <a href="output/Ext.Window.html" ext:cls="Ext.Window">Ext.Window</a>). The markup\r
-is of this form:</p>\r
-<pre><code>Ext.Element.boxMarkup =\r
- '<div class=<em>"{0}-tl"</em>><div class=<em>"{0}-tr"</em>><div class=<em>"{0}-tc"</em>></div></div></div>\r
- <div class=<em>"{0}-ml"</em>><div class=<em>"{0}-mr"</em>><div class=<em>"{0}-mc"</em>></div></div></div>\r
- <div class=<em>"{0}-bl"</em>><div class=<em>"{0}-br"</em>><div class=<em>"{0}-bc"</em>></div></div></div>';</code></pre>\r
-<p>Example usage:</p>\r
-<pre><code><i>// Basic box wrap\r</i>
- Ext.get(<em>"foo"</em>).boxWrap();\r
-\r
- <i>// You can also add a custom class and use CSS inheritance rules to customize the box look.\r</i>
- <i>// <em>'x-box-blue'</em> is a built-<b>in</b> alternative -- look at the related CSS definitions as an example\r</i>
- <i>// <b>for</b> how to create a custom box wrap style.\r</i>
- Ext.get(<em>"foo"</em>).boxWrap().addClass(<em>"x-box-blue"</em>);</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>class</code> : String<div class="sub-desc">(optional) A base CSS class to apply to the containing wrapper element\r
-(defaults to <tt>'x-box'</tt>). Note that there are a number of CSS rules that are dependent on\r
-this name to make the overall effect work, so if you supply an alternate base class, make sure you\r
+ Ext.Element<div class="mdesc"><div class="short">Wraps the specified element with a special 9 element markup/CSS block that renders by default as
+a gray container wit...</div><div class="long"><p>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.</p>
+<p>This special markup is used throughout Ext when box wrapping elements (<a href="output/Ext.Button.html" ext:cls="Ext.Button">Ext.Button</a>,
+<a href="output/Ext.Panel.html" ext:cls="Ext.Panel">Ext.Panel</a> when <tt><a href="output/Ext.Panel.html#Ext.Panel-frame" ext:member="frame" ext:cls="Ext.Panel">frame=true</a></tt>, <a href="output/Ext.Window.html" ext:cls="Ext.Window">Ext.Window</a>). The markup
+is of this form:</p>
+<pre><code>Ext.Element.boxMarkup =
+ '<div class=<em>"{0}-tl"</em>><div class=<em>"{0}-tr"</em>><div class=<em>"{0}-tc"</em>></div></div></div>
+ <div class=<em>"{0}-ml"</em>><div class=<em>"{0}-mr"</em>><div class=<em>"{0}-mc"</em>></div></div></div>
+ <div class=<em>"{0}-bl"</em>><div class=<em>"{0}-br"</em>><div class=<em>"{0}-bc"</em>></div></div></div>';</code></pre>
+<p>Example usage:</p>
+<pre><code><i>// Basic box wrap</i>
+ Ext.get(<em>"foo"</em>).boxWrap();
+
+ <i>// You can also add a custom class and use CSS inheritance rules to customize the box look.</i>
+ <i>// <em>'x-box-blue'</em> is a built-<b>in</b> alternative -- look at the related CSS definitions as an example</i>
+ <i>// <b>for</b> how to create a custom box wrap style.</i>
+ Ext.get(<em>"foo"</em>).boxWrap().addClass(<em>"x-box-blue"</em>);</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>class</code> : String<div class="sub-desc">(optional) A base CSS class to apply to the containing wrapper element
+(defaults to <tt>'x-box'</tt>). 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.</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">The outermost wrapping element of the created box structure.</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#boxWrap" ext:member="#boxWrap" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-center"></a><b><a href="source/Element.alignment.html#method-Ext.Element-center">center</a></b>( <span title="Optional" class="optional">[<code>Mixed centerIn</code>]</span> )
:
void<div class="mdesc"><div class="short">Centers the Element in either the viewport, or another Element.</div><div class="long">Centers the Element in either the viewport, or another Element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>centerIn</code> : Mixed<div class="sub-desc">(optional) The element in which to center the element.</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#center" ext:member="#center" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-child"></a><b><a href="source/Element.traversal.html#method-Ext.Element-child">child</a></b>( <code>String selector</code>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
Boolean<div class="mdesc"><div class="short">Returns true if this element is an ancestor of the passed element</div><div class="long">Returns true if this element is an ancestor of the passed element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : HTMLElement/String<div class="sub-desc">The element to check</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">True if this element is an ancestor of el, else false</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#contains" ext:member="#contains" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-createChild"></a><b><a href="source/Element.insertion.html#method-Ext.Element-createChild">createChild</a></b>( <code>Object config</code>, <span title="Optional" class="optional">[<code>HTMLElement insertBefore</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...</div><div class="long">Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>config</code> : Object<div class="sub-desc">DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\r
+ Ext.Element<div class="mdesc"><div class="short">Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...</div><div class="long">Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>config</code> : Object<div class="sub-desc">DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be
automatically generated with the specified attributes.</div></li><li><code>insertBefore</code> : HTMLElement<div class="sub-desc">(optional) a child element of this element</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) true to return the dom node instead of creating an Element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">The new child element</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#createChild" ext:member="#createChild" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-createProxy"></a><b><a href="source/Element-more.html#method-Ext.Element-createProxy">createProxy</a></b>( <code>String/Object config</code>, <span title="Optional" class="optional">[<code>String/HTMLElement renderTo</code>]</span>, <span title="Optional" class="optional">[<code>Boolean matchBox</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Creates a proxy element of this element</div><div class="long">Creates a proxy element of this element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>config</code> : String/Object<div class="sub-desc">The class name of the proxy element or a DomHelper config object</div></li><li><code>renderTo</code> : String/HTMLElement<div class="sub-desc">(optional) The element or element id to render the proxy to (defaults to document.body)</div></li><li><code>matchBox</code> : Boolean<div class="sub-desc">(optional) True to align and size the proxy to this element now (defaults to false)</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">The new proxy element</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#createProxy" ext:member="#createProxy" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-createShim"></a><b><a href="source/Element.fx-more.html#method-Ext.Element-createShim">createShim</a></b>()
:
- Ext.Element<div class="mdesc"><div class="short">Creates an iframe shim for this element to keep selects and other windowed objects from
-showing through.</div><div class="long">Creates an iframe shim for this element to keep selects and other windowed objects from\r
+ Ext.Element<div class="mdesc"><div class="short">Creates an iframe shim for this element to keep selects and other windowed objects from
+showing through.</div><div class="long">Creates an iframe shim for this element to keep selects and other windowed objects from
showing through.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">The new shim element</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#createShim" ext:member="#createShim" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-down"></a><b><a href="source/Element.traversal.html#method-Ext.Element-down">down</a></b>( <code>String selector</code>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
HTMLElement/Ext.Element<div class="mdesc"><div class="short">Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).</div><div class="long">Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The CSS selector</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return the DOM node instead of Ext.Element (defaults to false)</div></li></ul><strong>Returns:</strong><ul><li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The child Ext.Element (or DOM node if returnDom = true)</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#down" ext:member="#down" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-enableDisplayMode"></a><b><a href="source/Element.fx-more.html#method-Ext.Element-enableDisplayMode">enableDisplayMode</a></b>( <span title="Optional" class="optional">[<code>String display</code>]</span> )
:
HTMLElement<div class="mdesc"><div class="short">Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:fi...</div><div class="long">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)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li><li><code>maxDepth</code> : Number/Mixed<div class="sub-desc">(optional) The max depth to search as a number or element (defaults to 50 || document.body)</div></li><li><code>returnEl</code> : Boolean<div class="sub-desc">(optional) True to return a Ext.Element object instead of DOM node</div></li></ul><strong>Returns:</strong><ul><li><code>HTMLElement</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#findParent" ext:member="#findParent" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-findParentNode"></a><b><a href="source/Element.traversal.html#method-Ext.Element-findParentNode">findParentNode</a></b>( <code>String selector</code>, <span title="Optional" class="optional">[<code>Number/Mixed maxDepth</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnEl</code>]</span> )
:
- HTMLElement<div class="mdesc"><div class="short">Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)</div><div class="long">Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li><li><code>maxDepth</code> : Number/Mixed<div class="sub-desc">(optional) The max depth to\r
+ HTMLElement<div class="mdesc"><div class="short">Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)</div><div class="long">Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li><li><code>maxDepth</code> : Number/Mixed<div class="sub-desc">(optional) The max depth to
search as a number or element (defaults to 10 || document.body)</div></li><li><code>returnEl</code> : Boolean<div class="sub-desc">(optional) True to return a Ext.Element object instead of DOM node</div></li></ul><strong>Returns:</strong><ul><li><code>HTMLElement</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#findParentNode" ext:member="#findParentNode" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-first"></a><b><a href="source/Element.traversal.html#method-Ext.Element-first">first</a></b>( <span title="Optional" class="optional">[<code>String selector</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
Ext.Element/HTMLElement<div class="mdesc"><div class="short">Gets the first child, skipping text nodes</div><div class="long">Gets the first child, skipping text nodes<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">(optional) Find the next sibling that matches the passed simple selector</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return a raw dom node instead of an Ext.Element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The first child or null</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#first" ext:member="#first" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-fly"></a><b><a href="source/Element.html#method-Ext.Element-fly">fly</a></b>( <code>String/HTMLElement el</code>, <span title="Optional" class="optional">[<code>String named</code>]</span> )
:
Number<div class="mdesc"><div class="short">Gets the bottom Y coordinate of the element (element Y position + element height)</div><div class="long">Gets the bottom Y coordinate of the element (element Y position + element height)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getBottom" ext:member="#getBottom" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getBox"></a><b><a href="source/Element.position-more.html#method-Ext.Element-getBox">getBox</a></b>( <span title="Optional" class="optional">[<code>Boolean contentBox</code>]</span>, <span title="Optional" class="optional">[<code>Boolean local</code>]</span> )
:
- Object<div class="mdesc"><div class="short">Return an object defining the area of this Element which can be passed to setBox to
-set another Element's size/locat...</div><div class="long">Return an object defining the area of this Element which can be passed to <a href="output/Ext.Element.html#Ext.Element-setBox" ext:member="setBox" ext:cls="Ext.Element">setBox</a> to\r
-set another Element's size/location to match this element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>contentBox</code> : Boolean<div class="sub-desc">(optional) If true a box for the content of the element is returned.</div></li><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page x/y.</div></li></ul><strong>Returns:</strong><ul><li><code>Object</code><div class="sub-desc">box An object in the format<pre><code>
-{
- x: &lt;Element's X position>,
- y: &lt;Element's Y position>,
- width: &lt;Element's width>,
- height: &lt;Element's height>,
- bottom: &lt;Element's lower bound>,
- right: &lt;Element's rightmost bound>
-}
-</code></pre>
-The returned object may also be addressed as an Array where index 0 contains the X position
+ Object<div class="mdesc"><div class="short">Return an object defining the area of this Element which can be passed to setBox to
+set another Element's size/locati...</div><div class="long">Return an object defining the area of this Element which can be passed to <a href="output/Ext.Element.html#Ext.Element-setBox" ext:member="setBox" ext:cls="Ext.Element">setBox</a> to
+set another Element's size/location to match this element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>contentBox</code> : Boolean<div class="sub-desc">(optional) If true a box for the content of the element is returned.</div></li><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page x/y.</div></li></ul><strong>Returns:</strong><ul><li><code>Object</code><div class="sub-desc">box An object in the format<pre><code>
+{
+ x: &lt;Element's X position>,
+ y: &lt;Element's Y position>,
+ width: &lt;Element's width>,
+ height: &lt;Element's height>,
+ bottom: &lt;Element's lower bound>,
+ right: &lt;Element's rightmost bound>
+}
+</code></pre>
+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 {@link #setXY}</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getBox" ext:member="#getBox" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getCenterXY"></a><b><a href="source/Element.alignment.html#method-Ext.Element-getCenterXY">getCenterXY</a></b>()
:
Array<div class="mdesc"><div class="short">Calculates the x, y to center this element on the screen</div><div class="long">Calculates the x, y to center this element on the screen<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Array</code><div class="sub-desc">The x, y values [x, y]</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getCenterXY" ext:member="#getCenterXY" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getColor"></a><b><a href="source/Element.style.html#method-Ext.Element-getColor">getColor</a></b>( <code>String attr</code>, <code>String defaultValue</code>, <span title="Optional" class="optional">[<code>String prefix</code>]</span> )
are convert to standard 6 digit hex color.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>attr</code> : String<div class="sub-desc">The css attribute</div></li><li><code>defaultValue</code> : String<div class="sub-desc">The default value to use when a valid color isn't found</div></li><li><code>prefix</code> : String<div class="sub-desc">(optional) defaults to #. Use an empty string when working with
color anims.</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getColor" ext:member="#getColor" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getComputedHeight"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getComputedHeight">getComputedHeight</a></b>()
:
- Number<div class="mdesc"><div class="short">Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
-whe...</div><div class="long">Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\r
-when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements\r
+ Number<div class="mdesc"><div class="short">Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
+when...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getComputedHeight" ext:member="#getComputedHeight" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getComputedWidth"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getComputedWidth">getComputedWidth</a></b>()
:
- Number<div class="mdesc"><div class="short">Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
-when n...</div><div class="long">Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\r
-when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements\r
+ Number<div class="mdesc"><div class="short">Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
+when ne...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getComputedWidth" ext:member="#getComputedWidth" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getFrameWidth"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getFrameWidth">getFrameWidth</a></b>( <code>String sides</code> )
:
- Number<div class="mdesc"><div class="short">Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
- for more info...</div><div class="long">Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()\r
+ Number<div class="mdesc"><div class="short">Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
+ for more infor...</div><div class="long">Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
for more information about the sides.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>sides</code> : String<div class="sub-desc"></div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getFrameWidth" ext:member="#getFrameWidth" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getHeight"></a><b><a href="source/Element.style.html#method-Ext.Element-getHeight">getHeight</a></b>( <span title="Optional" class="optional">[<code>Boolean contentHeight</code>]</span> )
:
Number<div class="mdesc"><div class="short">Returns the offset height of the element</div><div class="long">Returns the offset height of the element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>contentHeight</code> : Boolean<div class="sub-desc">(optional) true to get the height minus borders and padding</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc">The element's height</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getHeight" ext:member="#getHeight" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getLeft"></a><b><a href="source/Element.position.html#method-Ext.Element-getLeft">getLeft</a></b>( <code>Boolean local</code> )
:
Number<div class="mdesc"><div class="short">Gets the left X coordinate</div><div class="long">Gets the left X coordinate<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getLeft" ext:member="#getLeft" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getMargins"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getMargins">getMargins</a></b>( <span title="Optional" class="optional">[<code>String sides</code>]</span> )
:
- Object/Number<div class="mdesc"><div class="short">Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i...</div><div class="long">Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,\r
+ Object/Number<div class="mdesc"><div class="short">Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i...</div><div class="long">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)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>sides</code> : String<div class="sub-desc">(optional) Any combination of l, r, t, b to get the sum of those sides</div></li></ul><strong>Returns:</strong><ul><li><code>Object/Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getMargins" ext:member="#getMargins" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getOffsetsTo"></a><b><a href="source/Element.position.html#method-Ext.Element-getOffsetsTo">getOffsetsTo</a></b>( <code>Mixed element</code> )
:
Array<div class="mdesc"><div class="short">Returns the offsets of this element from the passed element. Both element must be part of the DOM tree and not have d...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>element</code> : Mixed<div class="sub-desc">The element to get the offsets from.</div></li></ul><strong>Returns:</strong><ul><li><code>Array</code><div class="sub-desc">The XY page offsets (e.g. [100, -200])</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getOffsetsTo" ext:member="#getOffsetsTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getPadding"></a><b><a href="source/Element.style.html#method-Ext.Element-getPadding">getPadding</a></b>( <code>String side</code> )
Number<div class="mdesc"><div class="short">Gets the width of the padding(s) for the specified side(s)</div><div class="long">Gets the width of the padding(s) for the specified side(s)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>side</code> : String<div class="sub-desc">Can be t, l, r, b or any combination of those to add multiple values. For example,
passing <tt>'lr'</tt> would get the padding <b><u>l</u></b>eft + the padding <b><u>r</u></b>ight.</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc">The padding of the sides passed added together</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getPadding" ext:member="#getPadding" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getPositioning"></a><b><a href="source/Element.position.html#method-Ext.Element-getPositioning">getPositioning</a></b>()
:
- Object<div class="mdesc"><div class="short">Gets an object with all CSS positioning properties. Useful along with setPostioning to get
-snapshot before performin...</div><div class="long">Gets an object with all CSS positioning properties. Useful along with setPostioning to get\r
+ Object<div class="mdesc"><div class="short">Gets an object with all CSS positioning properties. Useful along with setPostioning to get
+snapshot before performing...</div><div class="long">Gets an object with all CSS positioning properties. Useful along with setPostioning to get
snapshot before performing an update and then restoring the element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Object</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getPositioning" ext:member="#getPositioning" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getRegion"></a><b><a href="source/Element.position-more.html#method-Ext.Element-getRegion">getRegion</a></b>()
:
- Region<div class="mdesc"><div class="short">Returns the region of the given element.
-The element must be part of the DOM tree to have a region (display:none or ...</div><div class="long">Returns the region of the given element.\r
+ Region<div class="mdesc"><div class="short">Returns the region of the given element.
+The element must be part of the DOM tree to have a region (display:none or e...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Region</code><div class="sub-desc">A Ext.lib.Region containing "top, left, bottom, right" member data.</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getRegion" ext:member="#getRegion" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getRight"></a><b><a href="source/Element.position.html#method-Ext.Element-getRight">getRight</a></b>( <code>Boolean local</code> )
:
Number<div class="mdesc"><div class="short">Gets the right X coordinate of the element (element X position + element width)</div><div class="long">Gets the right X coordinate of the element (element X position + element width)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getRight" ext:member="#getRight" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getScroll"></a><b><a href="source/Element.scroll.html#method-Ext.Element-getScroll">getScroll</a></b>()
:
String<div class="mdesc"><div class="short">Normalizes currentStyle and computedStyle.</div><div class="long">Normalizes currentStyle and computedStyle.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>property</code> : String<div class="sub-desc">The style property whose value is returned.</div></li></ul><strong>Returns:</strong><ul><li><code>String</code><div class="sub-desc">The current value of the style property for this element.</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getStyle" ext:member="#getStyle" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getStyleSize"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getStyleSize">getStyleSize</a></b>()
:
- void<div class="mdesc"><div class="short">Returns the dimensions of the element available to lay content out in.
-getStyleSize utilizes prefers style sizing if...</div><div class="long"><p>Returns the dimensions of the element available to lay content out in.<p>\r
-getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth.\r
-To obtain the size excluding scrollbars, use getViewSize\r
+ void<div class="mdesc"><div class="short">Returns the dimensions of the element available to lay content out in.
+getStyleSize utilizes prefers style sizing if ...</div><div class="long"><p>Returns the dimensions of the element available to lay content out in.<p>
+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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getStyleSize" ext:member="#getStyleSize" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getStyles"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getStyles">getStyles</a></b>( <code>String style1</code>, <code>String style2</code>, <code>String etc.</code> )
:
- Object<div class="mdesc"><div class="short">Returns an object with properties matching the styles requested.
-For example, el.getStyles('color', 'font-size', 'wi...</div><div class="long">Returns an object with properties matching the styles requested.\r
-For example, el.getStyles('color', 'font-size', 'width') might return\r
+ Object<div class="mdesc"><div class="short">Returns an object with properties matching the styles requested.
+For example, el.getStyles('color', 'font-size', 'wid...</div><div class="long">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'}.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>style1</code> : String<div class="sub-desc">A style name</div></li><li><code>style2</code> : String<div class="sub-desc">A style name</div></li><li><code>etc.</code> : String<div class="sub-desc"></div></li></ul><strong>Returns:</strong><ul><li><code>Object</code><div class="sub-desc">The style object</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getStyles" ext:member="#getStyles" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getTextWidth"></a><b><a href="source/TextMetrics.html#method-Ext.Element-getTextWidth">getTextWidth</a></b>( <code>String text</code>, <span title="Optional" class="optional">[<code>Number min</code>]</span>, <span title="Optional" class="optional">[<code>Number max</code>]</span> )
:
Number<div class="mdesc"><div class="short">Returns the width in pixels of the passed text, or the width of the text in this Element.</div><div class="long">Returns the width in pixels of the passed text, or the width of the text in this Element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>text</code> : String<div class="sub-desc">The text to measure. Defaults to the innerHTML of the element.</div></li><li><code>min</code> : Number<div class="sub-desc">(Optional) The minumum value to return.</div></li><li><code>max</code> : Number<div class="sub-desc">(Optional) The maximum value to return.</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc">The text width in pixels.</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getTextWidth" ext:member="#getTextWidth" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getTop"></a><b><a href="source/Element.position.html#method-Ext.Element-getTop">getTop</a></b>( <code>Boolean local</code> )
:
String/Number<div class="mdesc"><div class="short">Returns the value of the "value" attribute</div><div class="long">Returns the value of the "value" attribute<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>asNumber</code> : Boolean<div class="sub-desc">true to parse the value as a number</div></li></ul><strong>Returns:</strong><ul><li><code>String/Number</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getValue" ext:member="#getValue" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getViewSize"></a><b><a href="source/Element.style-more.html#method-Ext.Element-getViewSize">getViewSize</a></b>()
:
- void<div class="mdesc"><div class="short">Returns the dimensions of the element available to lay content out in.
-If the element (or any ancestor element) has ...</div><div class="long"><p>Returns the dimensions of the element available to lay content out in.<p>\r
-<p>If the element (or any ancestor element) has CSS style <code>display : none</code>, the dimensions will be zero.</p>\r
-example:<pre><code><b>var</b> vpSize = Ext.getBody().getViewSize();\r
-\r
- <i>// all Windows created afterwards will have a <b>default</b> value of 90% height and 95% width\r</i>
- Ext.Window.override({\r
- width: vpSize.width * 0.9,\r
- height: vpSize.height * 0.95\r
- });\r
- <i>// To handle window resizing you would have to hook onto onWindowResize.</i></code></pre>\r
-getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.\r
-To obtain the size including scrollbars, use getStyleSize\r
+ void<div class="mdesc"><div class="short">Returns the dimensions of the element available to lay content out in.
+If the element (or any ancestor element) has C...</div><div class="long"><p>Returns the dimensions of the element available to lay content out in.<p>
+<p>If the element (or any ancestor element) has CSS style <code>display : none</code>, the dimensions will be zero.</p>
+example:<pre><code><b>var</b> vpSize = Ext.getBody().getViewSize();
+
+ <i>// all Windows created afterwards will have a <b>default</b> value of 90% height and 95% width</i>
+ Ext.Window.override({
+ width: vpSize.width * 0.9,
+ height: vpSize.height * 0.95
+ });
+ <i>// To handle window resizing you would have to hook onto onWindowResize.</i></code></pre>
+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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getViewSize" ext:member="#getViewSize" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getWidth"></a><b><a href="source/Element.style.html#method-Ext.Element-getWidth">getWidth</a></b>( <span title="Optional" class="optional">[<code>Boolean contentWidth</code>]</span> )
:
Number<div class="mdesc"><div class="short">Returns the offset width of the element</div><div class="long">Returns the offset width of the element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>contentWidth</code> : Boolean<div class="sub-desc">(optional) true to get the width minus borders and padding</div></li></ul><strong>Returns:</strong><ul><li><code>Number</code><div class="sub-desc">The element's width</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#getWidth" ext:member="#getWidth" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-getX"></a><b><a href="source/Element.position.html#method-Ext.Element-getX">getX</a></b>()
parameter as Ext.Updater.upd...</div><div class="long">Direct access to the Updater <a href="output/Ext.Updater.html#Ext.Updater-update" ext:member="update" ext:cls="Ext.Updater">Ext.Updater.update</a> method. The method takes the same object
parameter as <a href="output/Ext.Updater.html#Ext.Updater-update" ext:member="update" ext:cls="Ext.Updater">Ext.Updater.update</a><div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#load" ext:member="#load" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-mask"></a><b><a href="source/Element.fx-more.html#method-Ext.Element-mask">mask</a></b>( <span title="Optional" class="optional">[<code>String msg</code>]</span>, <span title="Optional" class="optional">[<code>String msgCls</code>]</span> )
:
- Element<div class="mdesc"><div class="short">Puts a mask over this element to disable user interaction. Requires core.css.
-This method can only be applied to ele...</div><div class="long">Puts a mask over this element to disable user interaction. Requires core.css.\r
+ Element<div class="mdesc"><div class="short">Puts a mask over this element to disable user interaction. Requires core.css.
+This method can only be applied to elem...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>msg</code> : String<div class="sub-desc">(optional) A message to display in the mask</div></li><li><code>msgCls</code> : String<div class="sub-desc">(optional) A css class to apply to the msg element</div></li></ul><strong>Returns:</strong><ul><li><code>Element</code><div class="sub-desc">The mask element</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#mask" ext:member="#mask" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-move"></a><b><a href="source/Element.position-more.html#method-Ext.Element-move">move</a></b>( <code>String direction</code>, <code>Number distance</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Move this element relative to its current position.</div><div class="long">Move this element relative to its current position.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>direction</code> : String<div class="sub-desc">Possible values are: "l" (or "left"), "r" (or "right"), "t" (or "top", or "up"), "b" (or "bottom", or "down").</div></li><li><code>distance</code> : Number<div class="sub-desc">How far to move the element in pixels</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#move" ext:member="#move" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-moveTo"></a><b><a href="source/Element.position.html#method-Ext.Element-moveTo">moveTo</a></b>( <code>Number x</code>, <code>Number y</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ...</div><div class="long">Sets the position of the element in page coordinates, regardless of how the element is positioned.\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
+The element must b...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>x</code> : Number<div class="sub-desc">X value for new position (coordinates are page-based)</div></li><li><code>y</code> : Number<div class="sub-desc">Y value for new position (coordinates are page-based)</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#moveTo" ext:member="#moveTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-next"></a><b><a href="source/Element.traversal.html#method-Ext.Element-next">next</a></b>( <span title="Optional" class="optional">[<code>String selector</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
Ext.Element/HTMLElement<div class="mdesc"><div class="short">Gets the next sibling, skipping text nodes</div><div class="long">Gets the next sibling, skipping text nodes<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">(optional) Find the next sibling that matches the passed simple selector</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return a raw dom node instead of an Ext.Element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The next sibling or null</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#next" ext:member="#next" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-on"></a><b><a href="source/Element.html#method-Ext.Element-on">on</a></b>( <code>String eventName</code>, <code>Function fn</code>, <span title="Optional" class="optional">[<code>Object scope</code>]</span>, <span title="Optional" class="optional">[<code>Object options</code>]</span> )
:
Ext.Element/HTMLElement<div class="mdesc"><div class="short">Gets the parent node for this element, optionally chaining up trying to match a selector</div><div class="long">Gets the parent node for this element, optionally chaining up trying to match a selector<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">(optional) Find a parent node that matches the passed simple selector</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return a raw dom node instead of an Ext.Element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The parent node or null</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#parent" ext:member="#parent" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-position"></a><b><a href="source/Element.position.html#method-Ext.Element-position">position</a></b>( <span title="Optional" class="optional">[<code>String pos</code>]</span>, <span title="Optional" class="optional">[<code>Number zIndex</code>]</span>, <span title="Optional" class="optional">[<code>Number x</code>]</span>, <span title="Optional" class="optional">[<code>Number y</code>]</span> )
:
- void<div class="mdesc"><div class="short">Initializes positioning on this element. If a desired position is not passed, it will make the
-the element positione...</div><div class="long">Initializes positioning on this element. If a desired position is not passed, it will make the\r
+ void<div class="mdesc"><div class="short">Initializes positioning on this element. If a desired position is not passed, it will make the
+the element positioned...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>pos</code> : String<div class="sub-desc">(optional) Positioning to use "relative", "absolute" or "fixed"</div></li><li><code>zIndex</code> : Number<div class="sub-desc">(optional) The zIndex to apply</div></li><li><code>x</code> : Number<div class="sub-desc">(optional) Set the page X position</div></li><li><code>y</code> : Number<div class="sub-desc">(optional) Set the page Y position</div></li></ul><strong>Returns:</strong><ul><li>void</li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#position" ext:member="#position" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-prev"></a><b><a href="source/Element.traversal.html#method-Ext.Element-prev">prev</a></b>( <span title="Optional" class="optional">[<code>String selector</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )
:
Ext.Element/HTMLElement<div class="mdesc"><div class="short">Gets the previous sibling, skipping text nodes</div><div class="long">Gets the previous sibling, skipping text nodes<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">(optional) Find the previous sibling that matches the passed simple selector</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return a raw dom node instead of an Ext.Element</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The previous sibling or null</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#prev" ext:member="#prev" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-purgeAllListeners"></a><b><a href="source/Element.html#method-Ext.Element-purgeAllListeners">purgeAllListeners</a></b>()
:
Ext.Element<div class="mdesc"><div class="short">Replaces this element with the passed element</div><div class="long">Replaces this element with the passed element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : Mixed/Object<div class="sub-desc">The new element or a DomHelper config of an element to create</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#replaceWith" ext:member="#replaceWith" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-scroll"></a><b><a href="source/Element.scroll-more.html#method-Ext.Element-scroll">scroll</a></b>( <code>String direction</code>, <code>Number distance</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Boolean<div class="mdesc"><div class="short">Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
-within this element's ...</div><div class="long">Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\r
-within this element's scrollable range.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>direction</code> : String<div class="sub-desc">Possible values are: "l" (or "left"), "r" (or "right"), "t" (or "top", or "up"), "b" (or "bottom", or "down").</div></li><li><code>distance</code> : Number<div class="sub-desc">How far to scroll the element in pixels</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">Returns true if a scroll was triggered or false if the element
+ Boolean<div class="mdesc"><div class="short">Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
+within this element's s...</div><div class="long">Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
+within this element's scrollable range.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>direction</code> : String<div class="sub-desc">Possible values are: "l" (or "left"), "r" (or "right"), "t" (or "top", or "up"), "b" (or "bottom", or "down").</div></li><li><code>distance</code> : Number<div class="sub-desc">How far to scroll the element in pixels</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc">Returns true if a scroll was triggered or false if the element
was scrolled as far as it could go.</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#scroll" ext:member="#scroll" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-scrollIntoView"></a><b><a href="source/Element.scroll-more.html#method-Ext.Element-scrollIntoView">scrollIntoView</a></b>( <span title="Optional" class="optional">[<code>Mixed container</code>]</span>, <span title="Optional" class="optional">[<code>Boolean hscroll</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Scrolls this element into view within the passed container.</div><div class="long">Scrolls this element into view within the passed container.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The container element to scroll (defaults to document.body). Should be a\r
-string (id), dom node, or Ext.Element.</div></li><li><code>hscroll</code> : Boolean<div class="sub-desc">(optional) False to disable horizontal scroll (defaults to true)</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#scrollIntoView" ext:member="#scrollIntoView" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-scrollTo"></a><b><a href="source/Element.scroll.html#method-Ext.Element-scrollTo">scrollTo</a></b>( <code>String side</code>, <code>Number value</code> )
+ Ext.Element<div class="mdesc"><div class="short">Scrolls this element into view within the passed container.</div><div class="long">Scrolls this element into view within the passed container.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The container element to scroll (defaults to document.body). Should be a
+string (id), dom node, or Ext.Element.</div></li><li><code>hscroll</code> : Boolean<div class="sub-desc">(optional) False to disable horizontal scroll (defaults to true)</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#scrollIntoView" ext:member="#scrollIntoView" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-scrollTo"></a><b><a href="source/Element.scroll-more.html#method-Ext.Element-scrollTo">scrollTo</a></b>( <code>String side</code>, <code>Number value</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Element<div class="mdesc"><div class="short">Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it ...</div><div class="long">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().<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>side</code> : String<div class="sub-desc">Either "left" for scrollLeft values or "top" for scrollTop values.</div></li><li><code>value</code> : Number<div class="sub-desc">The new scroll value.</div></li></ul><strong>Returns:</strong><ul><li><code>Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#scrollTo" ext:member="#scrollTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-select"></a><b><a href="source/CompositeElement.html#method-Ext.Element-select">select</a></b>( <code>String/Array selector</code>, <span title="Optional" class="optional">[<code>Boolean unique</code>]</span>, <span title="Optional" class="optional">[<code>HTMLElement/String root</code>]</span> )
+ Element<div class="mdesc"><div class="short">Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it ...</div><div class="long">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().<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>side</code> : String<div class="sub-desc">Either "left" for scrollLeft values or "top" for scrollTop values.</div></li><li><code>value</code> : Number<div class="sub-desc">The new scroll value</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#scrollTo" ext:member="#scrollTo" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-select"></a><b><a href="source/CompositeElement.html#method-Ext.Element-select">select</a></b>( <code>String/Array selector</code>, <span title="Optional" class="optional">[<code>Boolean unique</code>]</span>, <span title="Optional" class="optional">[<code>HTMLElement/String root</code>]</span> )
:
- CompositeElementLite/CompositeElement<div class="mdesc"><div class="short">Selects elements based on the passed CSS selector to enable Element methods
-to be applied to many related elements i...</div><div class="long">Selects elements based on the passed CSS selector to enable <a href="output/Ext.Element.html" ext:cls="Ext.Element">Element</a> methods\r
-to be applied to many related elements in one statement through the returned <a href="output/Ext.CompositeElement.html" ext:cls="Ext.CompositeElement">CompositeElement</a> or\r
+ CompositeElementLite/CompositeElement<div class="mdesc"><div class="short">Selects elements based on the passed CSS selector to enable Element methods
+to be applied to many related elements in...</div><div class="long">Selects elements based on the passed CSS selector to enable <a href="output/Ext.Element.html" ext:cls="Ext.Element">Element</a> methods
+to be applied to many related elements in one statement through the returned <a href="output/Ext.CompositeElement.html" ext:cls="Ext.CompositeElement">CompositeElement</a> or
<a href="output/Ext.CompositeElementLite.html" ext:cls="Ext.CompositeElementLite">CompositeElementLite</a> object.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String/Array<div class="sub-desc">The CSS selector or an array of elements</div></li><li><code>unique</code> : Boolean<div class="sub-desc">(optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object)</div></li><li><code>root</code> : HTMLElement/String<div class="sub-desc">(optional) The root element of the query or id of the root</div></li></ul><strong>Returns:</strong><ul><li><code>CompositeElementLite/CompositeElement</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#select" ext:member="#select" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-set"></a><b><a href="source/Element.html#method-Ext.Element-set">set</a></b>( <code>Object o</code>, <span title="Optional" class="optional">[<code>Boolean useSet</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)</div><div class="long">Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>o</code> : Object<div class="sub-desc">The object with the attributes</div></li><li><code>useSet</code> : Boolean<div class="sub-desc">(optional) false to override the default setAttribute to use expandos.</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#set" ext:member="#set" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setBottom"></a><b><a href="source/Element.position.html#method-Ext.Element-setBottom">setBottom</a></b>( <code>String bottom</code> )
:
Ext.Element<div class="mdesc"><div class="short">Sets the element's CSS bottom style.</div><div class="long">Sets the element's CSS bottom style.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>bottom</code> : String<div class="sub-desc">The bottom CSS property value</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setBottom" ext:member="#setBottom" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setBounds"></a><b><a href="source/Element.position-more.html#method-Ext.Element-setBounds">setBounds</a></b>( <code>Number x</code>, <code>Number y</code>, <code>Mixed width</code>, <code>Mixed height</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated c...</div><div class="long">Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>x</code> : Number<div class="sub-desc">X value for new position (coordinates are page-based)</div></li><li><code>y</code> : Number<div class="sub-desc">Y value for new position (coordinates are page-based)</div></li><li><code>width</code> : Mixed<div class="sub-desc">The new width. This may be one of:<div class="mdetail-params"><ul>\r
-<li>A Number specifying the new width in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels)</li>\r
-<li>A String used to set the CSS width style. Animation may <b>not</b> be used.\r
-</ul></div></div></li><li><code>height</code> : Mixed<div class="sub-desc">The new height. This may be one of:<div class="mdetail-params"><ul>\r
-<li>A Number specifying the new height in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels)</li>\r
-<li>A String used to set the CSS height style. Animation may <b>not</b> be used.</li>\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated c...</div><div class="long">Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>x</code> : Number<div class="sub-desc">X value for new position (coordinates are page-based)</div></li><li><code>y</code> : Number<div class="sub-desc">Y value for new position (coordinates are page-based)</div></li><li><code>width</code> : Mixed<div class="sub-desc">The new width. This may be one of:<div class="mdetail-params"><ul>
+<li>A Number specifying the new width in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels)</li>
+<li>A String used to set the CSS width style. Animation may <b>not</b> be used.
+</ul></div></div></li><li><code>height</code> : Mixed<div class="sub-desc">The new height. This may be one of:<div class="mdetail-params"><ul>
+<li>A Number specifying the new height in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels)</li>
+<li>A String used to set the CSS height style. Animation may <b>not</b> be used.</li>
</ul></div></div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setBounds" ext:member="#setBounds" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setBox"></a><b><a href="source/Element.position-more.html#method-Ext.Element-setBox">setBox</a></b>( <code>Object box</code>, <span title="Optional" class="optional">[<code>Boolean adjust</code>]</span>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x an...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>box</code> : Object<div class="sub-desc">The box to fill {x, y, width, height}</div></li><li><code>adjust</code> : Boolean<div class="sub-desc">(optional) Whether to adjust for box-model issues automatically</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setBox" ext:member="#setBox" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setDisplayed"></a><b><a href="source/Element.fx.html#method-Ext.Element-setDisplayed">setDisplayed</a></b>( <code>Mixed value</code> )
:
Ext.Element<div class="mdesc"><div class="short">Quick set left and top adding default units</div><div class="long">Quick set left and top adding default units<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>left</code> : String<div class="sub-desc">The left CSS property value</div></li><li><code>top</code> : String<div class="sub-desc">The top CSS property value</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setLeftTop" ext:member="#setLeftTop" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setLocation"></a><b><a href="source/Element.position.html#method-Ext.Element-setLocation">setLocation</a></b>( <code>Number x</code>, <code>Number y</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ...</div><div class="long">Sets the position of the element in page coordinates, regardless of how the element is positioned.\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
+The element must b...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>x</code> : Number<div class="sub-desc">X value for new position (coordinates are page-based)</div></li><li><code>y</code> : Number<div class="sub-desc">Y value for new position (coordinates are page-based)</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setLocation" ext:member="#setLocation" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setOpacity"></a><b><a href="source/Element.style.html#method-Ext.Element-setOpacity">setOpacity</a></b>( <code>Float opacity</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Set the opacity of the element</div><div class="long">Set the opacity of the element<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>opacity</code> : Float<div class="sub-desc">The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) a standard Element animation config object or <tt>true</tt> for
:
Ext.Element<div class="mdesc"><div class="short">Sets the element's CSS right style.</div><div class="long">Sets the element's CSS right style.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>right</code> : String<div class="sub-desc">The right CSS property value</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setRight" ext:member="#setRight" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setSize"></a><b><a href="source/Element.style-more.html#method-Ext.Element-setSize">setSize</a></b>( <code>Mixed width</code>, <code>Mixed height</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Set the size of this Element. If animation is true, both width and height will be animated concurrently.</div><div class="long">Set the size of this Element. If animation is true, both width and height will be animated concurrently.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>width</code> : Mixed<div class="sub-desc">The new width. This may be one of:<div class="mdetail-params"><ul>\r
-<li>A Number specifying the new width in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels).</li>\r
-<li>A String used to set the CSS width style. Animation may <b>not</b> be used.\r
-<li>A size object in the format <code>{width: widthValue, height: heightValue}</code>.</li>\r
-</ul></div></div></li><li><code>height</code> : Mixed<div class="sub-desc">The new height. This may be one of:<div class="mdetail-params"><ul>\r
-<li>A Number specifying the new height in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels).</li>\r
-<li>A String used to set the CSS height style. Animation may <b>not</b> be used.</li>\r
+ Ext.Element<div class="mdesc"><div class="short">Set the size of this Element. If animation is true, both width and height will be animated concurrently.</div><div class="long">Set the size of this Element. If animation is true, both width and height will be animated concurrently.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>width</code> : Mixed<div class="sub-desc">The new width. This may be one of:<div class="mdetail-params"><ul>
+<li>A Number specifying the new width in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels).</li>
+<li>A String used to set the CSS width style. Animation may <b>not</b> be used.
+<li>A size object in the format <code>{width: widthValue, height: heightValue}</code>.</li>
+</ul></div></div></li><li><code>height</code> : Mixed<div class="sub-desc">The new height. This may be one of:<div class="mdetail-params"><ul>
+<li>A Number specifying the new height in this Element's <a href="output/Ext.Element.html#Ext.Element-defaultUnit" ext:member="defaultUnit" ext:cls="Ext.Element">defaultUnit</a>s (by default, pixels).</li>
+<li>A String used to set the CSS height style. Animation may <b>not</b> be used.</li>
</ul></div></div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) true for the default animation or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setSize" ext:member="#setSize" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setStyle"></a><b><a href="source/Element.style.html#method-Ext.Element-setStyle">setStyle</a></b>( <code>String/Object property</code>, <span title="Optional" class="optional">[<code>String value</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Wrapper for setting style properties, also takes single object parameter of multiple styles.</div><div class="long">Wrapper for setting style properties, also takes single object parameter of multiple styles.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>property</code> : String/Object<div class="sub-desc">The style property to be set, or an object of multiple styles.</div></li><li><code>value</code> : String<div class="sub-desc">(optional) The value to apply to the given property, or null if an object was passed.</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setStyle" ext:member="#setStyle" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setTop"></a><b><a href="source/Element.position.html#method-Ext.Element-setTop">setTop</a></b>( <code>String top</code> )
:
Ext.Element<div class="mdesc"><div class="short">Sets the element's top position directly using CSS style (instead of setY).</div><div class="long">Sets the element's top position directly using CSS style (instead of <a href="output/Ext.Element.html#Ext.Element-setY" ext:member="setY" ext:cls="Ext.Element">setY</a>).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>top</code> : String<div class="sub-desc">The top CSS property value</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setTop" ext:member="#setTop" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setVisibilityMode"></a><b><a href="source/Element.fx.html#method-Ext.Element-setVisibilityMode">setVisibilityMode</a></b>( <code>Number visMode</code> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the element's visibility mode. When setVisible() is called it
-will use this to determine whether to set the vis...</div><div class="long">Sets the element's visibility mode. When setVisible() is called it\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the element's visibility mode. When setVisible() is called it
+will use this to determine whether to set the visi...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>visMode</code> : Number<div class="sub-desc">Ext.Element.VISIBILITY or Ext.Element.DISPLAY</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setVisibilityMode" ext:member="#setVisibilityMode" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setVisible"></a><b><a href="source/Element.fx.html#method-Ext.Element-setVisible">setVisible</a></b>( <code>Boolean visible</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
-the d...</div><div class="long">Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
+the di...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>visible</code> : Boolean<div class="sub-desc">Whether the element is visible</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setVisible" ext:member="#setVisible" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setWidth"></a><b><a href="source/Element.style.html#method-Ext.Element-setWidth">setWidth</a></b>( <code>Mixed width</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Set the width of this Element.</div><div class="long">Set the width of this Element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>width</code> : Mixed<div class="sub-desc">The new width. This may be one of:<div class="mdetail-params"><ul>
:
Ext.Element<div class="mdesc"><div class="short">Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coor...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>The</code> : Number<div class="sub-desc">X position of the element</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setX" ext:member="#setX" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setXY"></a><b><a href="source/Element.position.html#method-Ext.Element-setXY">setXY</a></b>( <code>Array pos</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ...</div><div class="long">Sets the position of the element in page coordinates, regardless of how the element is positioned.\r
+ Ext.Element<div class="mdesc"><div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
+The element must b...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>pos</code> : Array<div class="sub-desc">Contains X & Y [x, y] values for new position (coordinates are page-based)</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setXY" ext:member="#setXY" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-setY"></a><b><a href="source/Element.position.html#method-Ext.Element-setY">setY</a></b>( <code>Number The</code>, <span title="Optional" class="optional">[<code>Boolean/Object animate</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coor...</div><div class="long">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).<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>The</code> : Number<div class="sub-desc">Y position of the element</div></li><li><code>animate</code> : Boolean/Object<div class="sub-desc">(optional) True for the default animation, or a standard Element animation config object</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#setY" ext:member="#setY" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Layer-setZIndex"></a><b><a href="source/Layer.html#method-Ext.Layer-setZIndex">setZIndex</a></b>( <code>Number zindex</code> )
:
Ext.Element<div class="mdesc"><div class="short">Disables text selection for this element (normalized across browsers)</div><div class="long">Disables text selection for this element (normalized across browsers)<div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#unselectable" ext:member="#unselectable" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-up"></a><b><a href="source/Element.traversal.html#method-Ext.Element-up">up</a></b>( <code>String selector</code>, <span title="Optional" class="optional">[<code>Number/Mixed maxDepth</code>]</span> )
:
- Ext.Element<div class="mdesc"><div class="short">Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first...</div><div class="long">Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).\r
-This is a shortcut for findParentNode() that always returns an Ext.Element.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li><li><code>maxDepth</code> : Number/Mixed<div class="sub-desc">(optional) The max depth to\r
+ Ext.Element<div class="mdesc"><div class="short">Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first...</div><div class="long">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.<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li><li><code>maxDepth</code> : Number/Mixed<div class="sub-desc">(optional) The max depth to
search as a number or element (defaults to 10 || document.body)</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#up" ext:member="#up" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-update"></a><b><a href="source/Element-more.html#method-Ext.Element-update">update</a></b>( <code>String html</code>, <span title="Optional" class="optional">[<code>Boolean loadScripts</code>]</span>, <span title="Optional" class="optional">[<code>Function callback</code>]</span> )
:
Ext.Element<div class="mdesc"><div class="short">Update the innerHTML of this element, optionally searching for and processing scripts</div><div class="long">Update the innerHTML of this element, optionally searching for and processing scripts<div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>html</code> : String<div class="sub-desc">The new HTML</div></li><li><code>loadScripts</code> : Boolean<div class="sub-desc">(optional) True to look for and process scripts (defaults to false)</div></li><li><code>callback</code> : Function<div class="sub-desc">(optional) For async script loading you can be notified when the update completes</div></li></ul><strong>Returns:</strong><ul><li><code>Ext.Element</code><div class="sub-desc">this</div></li></ul></div></div></div></td><td class="msource"><a href="output/Ext.Element.html#update" ext:member="#update" ext:cls="Ext.Element">Element</a></td></tr><tr class="method-row expandable inherited"><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Ext.Element-wrap"></a><b><a href="source/Element.insertion.html#method-Ext.Element-wrap">wrap</a></b>( <span title="Optional" class="optional">[<code>Object config</code>]</span>, <span title="Optional" class="optional">[<code>Boolean returnDom</code>]</span> )