1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.Layer-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.Layer-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.Layer-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="inner-link" href="#Ext.Layer-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7 <a class="bookmark" href="../docs/?class=Ext.Layer"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
9 <div class="inheritance res-block">
10 <pre class="res-block-inner"><a ext:cls="Ext.Element" ext:member="" href="output/Ext.Element.html">Element</a>
11 <img src="resources/elbow-end.gif"/>Layer</pre></div>
12 <h1>Class Ext.Layer</h1>
13 <table cellspacing="0">
14 <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
15 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Layer.js" target="_blank">Layer.js</a></td></tr>
16 <tr><td class="label">Class:</td><td class="hd-info">Layer</td></tr>
17 <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.Element" ext:member="" href="output/Ext.Element.html">Element</a></td></tr>
19 <div class="description">
21 An extended <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object that supports a shadow and shim, constrain to viewport and
22 automatic maintaining of shadow/shim positions. </div>
24 <div class="hr"></div>
25 <a id="Ext.Layer-configs"></a>
26 <h2>Config Options</h2>
27 <table cellspacing="0" class="member-table">
29 <th class="sig-header" colspan="2">Config Options</th>
30 <th class="msource-header">Defined By</th>
32 <tr class="config-row">
\r
33 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
35 <a id="Ext.Layer-cls"></a>
\r
36 <b>cls</b> : String <div class="mdesc">
\r
37 CSS class to add to the element </div>
\r
39 <td class="msource">Layer</td>
\r
41 <tr class="config-row alt">
\r
42 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
44 <a id="Ext.Layer-constrain"></a>
\r
45 <b>constrain</b> : Boolean <div class="mdesc">
\r
46 False to disable constrain to viewport (defaults to true) </div>
\r
48 <td class="msource">Layer</td>
\r
50 <tr class="config-row">
\r
51 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
53 <a id="Ext.Layer-dh"></a>
\r
54 <b>dh</b> : Object <div class="mdesc">
\r
55 DomHelper object config to create element with (defaults to {tag: "div", cls: "x-layer"}). </div>
\r
57 <td class="msource">Layer</td>
\r
59 <tr class="config-row alt expandable">
\r
60 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
62 <a id="Ext.Layer-shadow"></a>
\r
63 <b>shadow</b> : String/Boolean <div class="mdesc">
\r
64 <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>
\r
66 True to automatically create an <a ext:cls="Ext.Shadow" href="output/Ext.Shadow.html">Ext.Shadow</a>, or a string indicating the shadow's display <a ext:cls="Ext.Shadow" ext:member="mode" href="output/Ext.Shadow.html#mode">Ext.Shadow.mode</a>. False to disable the shadow. (defaults to false) </div>
\r
69 <td class="msource">Layer</td>
\r
71 <tr class="config-row">
\r
72 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
74 <a id="Ext.Layer-shadowOffset"></a>
\r
75 <b>shadowOffset</b> : Number <div class="mdesc">
\r
76 Number of pixels to offset the shadow (defaults to 3) </div>
\r
78 <td class="msource">Layer</td>
\r
80 <tr class="config-row alt">
\r
81 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
83 <a id="Ext.Layer-shim"></a>
\r
84 <b>shim</b> : Boolean <div class="mdesc">
\r
85 False to disable the iframe shim in browsers which need one (defaults to true) </div>
\r
87 <td class="msource">Layer</td>
\r
89 <tr class="config-row">
\r
90 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
92 <a id="Ext.Layer-zindex"></a>
\r
93 <b>zindex</b> : Number <div class="mdesc">
\r
94 Starting z-index (defaults to 11000) </div>
\r
96 <td class="msource">Layer</td>
\r
99 <a id="Ext.Layer-props"></a>
100 <h2>Public Properties</h2>
101 <table cellspacing="0" class="member-table">
103 <th class="sig-header" colspan="2">Property</th>
104 <th class="msource-header">Defined By</th>
106 <tr class="property-row inherited">
\r
107 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
109 <a id="Ext.Layer-defaultUnit"></a>
\r
110 <b>defaultUnit</b> : String <div class="mdesc">
\r
111 The default unit to append to CSS values where a unit isn't provided (defaults to px). </div>
\r
113 <td class="msource"><a ext:cls="Ext.Element" ext:member="#defaultUnit" href="output/Ext.Element.html#defaultUnit">Element</a></td>
\r
115 <tr class="property-row inherited alt">
\r
116 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
118 <a id="Ext.Layer-dom"></a>
\r
119 <b>dom</b> : HTMLElement <div class="mdesc">
\r
120 The DOM element </div>
\r
122 <td class="msource"><a ext:cls="Ext.Element" ext:member="#dom" href="output/Ext.Element.html#dom">Element</a></td>
\r
124 <tr class="property-row inherited">
\r
125 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
127 <a id="Ext.Layer-id"></a>
\r
128 <b>id</b> : String <div class="mdesc">
\r
129 The DOM element ID </div>
\r
131 <td class="msource"><a ext:cls="Ext.Element" ext:member="#id" href="output/Ext.Element.html#id">Element</a></td>
\r
133 <tr class="property-row inherited alt">
\r
134 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
136 <a id="Ext.Layer-originalDisplay"></a>
\r
137 <b>originalDisplay</b> : String <div class="mdesc">
\r
138 The element's default display mode (defaults to "") </div>
\r
140 <td class="msource"><a ext:cls="Ext.Element" ext:member="#originalDisplay" href="output/Ext.Element.html#originalDisplay">Element</a></td>
\r
143 <a id="Ext.Layer-methods"></a>
144 <h2>Public Methods</h2>
145 <table cellspacing="0" class="member-table">
147 <th class="sig-header" colspan="2">Method</th>
148 <th class="msource-header">Defined By</th>
150 <tr class="method-row expandable">
\r
151 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
153 <a id="Ext.Layer-Layer"></a>
\r
154 <b>Layer</b>( <code>Object config</code>, <span class="optional" title="Optional">[<code>String/HTMLElement existingEl</code>]</span> ) <div class="mdesc">
\r
155 <div class="short"></div>
\r
157 <div class="mdetail-params">
\r
158 <strong>Parameters:</strong>
\r
159 <ul><li><code>config</code> : Object<div class="sub-desc">An object with config options.</div></li><li><code>existingEl</code> : String/HTMLElement<div class="sub-desc">(optional) Uses an existing DOM element. If the element is not found it creates it.</div></li> </ul>
\r
160 <strong>Returns:</strong>
\r
162 <li><code></code></li>
\r
168 <td class="msource">Layer</td>
\r
170 <tr class="method-row inherited alt expandable">
\r
171 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
173 <a id="Ext.Layer-addClass"></a>
\r
174 <b>addClass</b>( <code>String/Array className</code> ) : Ext.Element <div class="mdesc">
\r
175 <div class="short">Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.</div>
\r
177 Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. <div class="mdetail-params">
\r
178 <strong>Parameters:</strong>
\r
179 <ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to add, or an array of classes</div></li> </ul>
\r
180 <strong>Returns:</strong>
\r
182 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
188 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClass" href="output/Ext.Element.html#addClass">Element</a></td>
\r
190 <tr class="method-row inherited expandable">
\r
191 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
193 <a id="Ext.Layer-addClassOnClick"></a>
\r
194 <b>addClassOnClick</b>( <code>String className</code> ) : Ext.Element <div class="mdesc">
\r
195 <div class="short">Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)</div>
\r
197 Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect) <div class="mdetail-params">
\r
198 <strong>Parameters:</strong>
\r
199 <ul><li><code>className</code> : String<div class="sub-desc"></div></li> </ul>
\r
200 <strong>Returns:</strong>
\r
202 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
208 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnClick" href="output/Ext.Element.html#addClassOnClick">Element</a></td>
\r
210 <tr class="method-row inherited alt expandable">
\r
211 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
213 <a id="Ext.Layer-addClassOnFocus"></a>
\r
214 <b>addClassOnFocus</b>( <code>String className</code> ) : Ext.Element <div class="mdesc">
\r
215 <div class="short">Sets up event handlers to add and remove a css class when this element has the focus</div>
\r
217 Sets up event handlers to add and remove a css class when this element has the focus <div class="mdetail-params">
\r
218 <strong>Parameters:</strong>
\r
219 <ul><li><code>className</code> : String<div class="sub-desc"></div></li> </ul>
\r
220 <strong>Returns:</strong>
\r
222 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
228 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnFocus" href="output/Ext.Element.html#addClassOnFocus">Element</a></td>
\r
230 <tr class="method-row inherited expandable">
\r
231 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
233 <a id="Ext.Layer-addClassOnOver"></a>
\r
234 <b>addClassOnOver</b>( <code>String className</code> ) : Ext.Element <div class="mdesc">
\r
235 <div class="short">Sets up event handlers to add and remove a css class when the mouse is over this element</div>
\r
237 Sets up event handlers to add and remove a css class when the mouse is over this element <div class="mdetail-params">
\r
238 <strong>Parameters:</strong>
\r
239 <ul><li><code>className</code> : String<div class="sub-desc"></div></li> </ul>
\r
240 <strong>Returns:</strong>
\r
242 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
248 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnOver" href="output/Ext.Element.html#addClassOnOver">Element</a></td>
\r
250 <tr class="method-row inherited alt expandable">
\r
251 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
253 <a id="Ext.Layer-addKeyListener"></a>
\r
254 <b>addKeyListener</b>( <code>Number/Array/Object/String key</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.KeyMap <div class="mdesc">
\r
255 <div class="short">Convenience method for constructing a KeyMap</div>
\r
257 Convenience method for constructing a KeyMap <div class="mdetail-params">
\r
258 <strong>Parameters:</strong>
\r
259 <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:
260 {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}</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 of the function</div></li> </ul>
\r
261 <strong>Returns:</strong>
\r
263 <li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li>
\r
269 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addKeyListener" href="output/Ext.Element.html#addKeyListener">Element</a></td>
\r
271 <tr class="method-row inherited expandable">
\r
272 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
274 <a id="Ext.Layer-addKeyMap"></a>
\r
275 <b>addKeyMap</b>( <code>Object config</code> ) : Ext.KeyMap <div class="mdesc">
\r
276 <div class="short">Creates a KeyMap for this element</div>
\r
278 Creates a KeyMap for this element <div class="mdetail-params">
\r
279 <strong>Parameters:</strong>
\r
280 <ul><li><code>config</code> : Object<div class="sub-desc">The KeyMap config. See <a ext:cls="Ext.KeyMap" href="output/Ext.KeyMap.html">Ext.KeyMap</a> for more details</div></li> </ul>
\r
281 <strong>Returns:</strong>
\r
283 <li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li>
\r
289 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addKeyMap" href="output/Ext.Element.html#addKeyMap">Element</a></td>
\r
291 <tr class="method-row inherited alt expandable">
\r
292 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
294 <a id="Ext.Layer-addListener"></a>
\r
295 <b>addListener</b>( <code>String eventName</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
296 <div class="short">Appends an event handler to this element. The shorthand version <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is equivalent.</div>
\r
298 Appends an event handler to this element. The shorthand version <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is equivalent. <div class="mdetail-params">
\r
299 <strong>Parameters:</strong>
\r
300 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to handle</div></li><li><code>fn</code> : Function<div class="sub-desc">The handler function the event invokes. This function is passed
301 the following parameters:<ul>
302 <li>evt : EventObject<div class="sub-desc">The <a ext:cls="Ext.EventObject" href="output/Ext.EventObject.html">EventObject</a> describing the event.</div></li>
303 <li>t : Element<div class="sub-desc">The <a ext:cls="Ext.Element" href="output/Ext.Element.html">Element</a> which was the target of the event.
304 Note that this may be filtered by using the <tt>delegate</tt> option.</div></li>
305 <li>o : Object<div class="sub-desc">The options object from the addListener call.</div></li>
306 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (The <tt>this</tt> reference) of the handler function. Defaults
307 to this Element.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration properties.
308 This may contain any of the following properties:<ul>
309 <li>scope {Object} : The scope in which to execute the handler function. The handler function's "this" context.</li>
310 <li>delegate {String} : A simple selector to filter the target or look for a descendant of the target</li>
311 <li>stopEvent {Boolean} : True to stop the event. That is stop propagation, and prevent the default action.</li>
312 <li>preventDefault {Boolean} : True to prevent the default action</li>
313 <li>stopPropagation {Boolean} : True to prevent event propagation</li>
314 <li>normalized {Boolean} : False to pass a browser event to the handler function instead of an Ext.EventObject</li>
315 <li>delay {Number} : The number of milliseconds to delay the invocation of the handler after te event fires.</li>
316 <li>single {Boolean} : True to add a handler to handle just the next firing of the event, and then remove itself.</li>
317 <li>buffer {Number} : Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
318 by the specified number of milliseconds. If the event fires again within that time, the original
319 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
322 <b>Combining Options</b><br>
323 In the following examples, the shorthand form <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is used rather than the more verbose
324 addListener. The two are equivalent. Using the options argument, it is possible to combine different
325 types of listeners:<br>
327 A normalized, delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the
328 options object. The options object is available as the third parameter in the handler function.<div style="margin: 5px 20px 20px;">
329 Code:<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
336 <b>Attaching multiple handlers in 1 call</b><br>
337 The method also allows for a single argument to be passed which is a config object containing properties
338 which specify multiple handlers.</p>
343 fn: <b>this</b>.onClick,
347 <em>'mouseover'</em> : {
348 fn: <b>this</b>.onMouseOver,
351 <em>'mouseout'</em> : {
352 fn: <b>this</b>.onMouseOut,
357 Or a shorthand syntax:<br>
360 <em>'click'</em> : <b>this</b>.onClick,
361 <em>'mouseover'</em> : <b>this</b>.onMouseOver,
362 <em>'mouseout'</em> : <b>this</b>.onMouseOut,
364 });</code></pre></div></li> </ul>
\r
365 <strong>Returns:</strong>
\r
367 <li><code>void</code></li>
\r
373 <td class="msource"><a ext:cls="Ext.Element" ext:member="#addListener" href="output/Ext.Element.html#addListener">Element</a></td>
\r
375 <tr class="method-row inherited expandable">
\r
376 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
378 <a id="Ext.Layer-alignTo"></a>
\r
379 <b>alignTo</b>( <code>Mixed element</code>, <code>String position</code>, <span class="optional" title="Optional">[<code>Array offsets</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
380 <div class="short">Aligns this element with another element relative to the specified anchor points. If the other element is the
383 Aligns this element with another element relative to the specified anchor points. If the other element is the
384 document it aligns it to the viewport.
385 The position parameter is optional, and can be specified in any one of the following formats:
387 <li><b>Blank</b>: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl").</li>
388 <li><b>One anchor (deprecated)</b>: The passed anchor position is used as the target element's anchor point.
389 The element being aligned will position its top-left corner (tl) to that point. <i>This method has been
390 deprecated in favor of the newer two anchor syntax below</i>.</li>
391 <li><b>Two anchors</b>: If two values from the table below are passed separated by a dash, the first value is used as the
392 element's anchor point, and the second value is used as the target's anchor point.</li>
394 In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of
395 the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to
396 the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than
397 that specified in order to enforce the viewport constraints.
398 Following are all of the supported anchor positions:
\r
399 <pre>Value Description
\r
400 ----- -----------------------------
\r
401 tl The top left corner (default)
\r
402 t The center of the top edge
\r
403 tr The top right corner
\r
404 l The center of the left edge
\r
405 c In the center of the element
\r
406 r The center of the right edge
\r
407 bl The bottom left corner
\r
408 b The center of the bottom edge
\r
409 br The bottom right corner</pre>
\r
411 <pre><code><i>// align el to other-el using the <b>default</b> positioning (<em>"tl-bl"</em>, non-constrained)</i>
412 el.alignTo(<em>"other-el"</em>);
414 <i>// align the top left corner of el <b>with</b> the top right corner of other-el (constrained to viewport)</i>
415 el.alignTo(<em>"other-el"</em>, <em>"tr?"</em>);
417 <i>// align the bottom right corner of el <b>with</b> the center left edge of other-el</i>
418 el.alignTo(<em>"other-el"</em>, <em>"br-l?"</em>);
420 <i>// align the center of el <b>with</b> the bottom left corner of other-el and</i>
421 <i>// adjust the x position by -6 pixels (and the y position by 0)</i>
422 el.alignTo(<em>"other-el"</em>, <em>"c-bl"</em>, [-6, 0]);</code></pre> <div class="mdetail-params">
\r
423 <strong>Parameters:</strong>
\r
424 <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> </ul>
\r
425 <strong>Returns:</strong>
\r
427 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
433 <td class="msource"><a ext:cls="Ext.Element" ext:member="#alignTo" href="output/Ext.Element.html#alignTo">Element</a></td>
\r
435 <tr class="method-row inherited alt expandable">
\r
436 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
438 <a id="Ext.Layer-anchorTo"></a>
\r
439 <b>anchorTo</b>( <code>Mixed element</code>, <code>String position</code>, <span class="optional" title="Optional">[<code>Array offsets</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Number monitorScroll</code>]</span>, <code>Function callback</code> ) : Ext.Element <div class="mdesc">
\r
440 <div class="short">Anchors an element to another element and realigns it when the window is resized.</div>
\r
442 Anchors an element to another element and realigns it when the window is resized. <div class="mdetail-params">
\r
443 <strong>Parameters:</strong>
\r
444 <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
445 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>
\r
446 <strong>Returns:</strong>
\r
448 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
454 <td class="msource"><a ext:cls="Ext.Element" ext:member="#anchorTo" href="output/Ext.Element.html#anchorTo">Element</a></td>
\r
456 <tr class="method-row inherited expandable">
\r
457 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
459 <a id="Ext.Layer-animate"></a>
\r
460 <b>animate</b>( <code>Object args</code>, <span class="optional" title="Optional">[<code>Float duration</code>]</span>, <span class="optional" title="Optional">[<code>Function onComplete</code>]</span>, <span class="optional" title="Optional">[<code>String easing</code>]</span>, <span class="optional" title="Optional">[<code>String animType</code>]</span> ) : Ext.Element <div class="mdesc">
\r
461 <div class="short">Perform animation on this element.</div>
\r
463 Perform animation on this element. <div class="mdetail-params">
\r
464 <strong>Parameters:</strong>
\r
465 <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 .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><li><code>animType</code> : String<div class="sub-desc">(optional) 'run' is the default. Can also be 'color', 'motion', or 'scroll'</div></li> </ul>
\r
466 <strong>Returns:</strong>
\r
468 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
474 <td class="msource"><a ext:cls="Ext.Element" ext:member="#animate" href="output/Ext.Element.html#animate">Element</a></td>
\r
476 <tr class="method-row inherited alt expandable">
\r
477 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
479 <a id="Ext.Layer-appendChild"></a>
\r
480 <b>appendChild</b>( <code>String/HTMLElement/Array/Element/CompositeElement el</code> ) : Ext.Element <div class="mdesc">
\r
481 <div class="short">Appends the passed element(s) to this element</div>
\r
483 Appends the passed element(s) to this element <div class="mdetail-params">
\r
484 <strong>Parameters:</strong>
\r
485 <ul><li><code>el</code> : String/HTMLElement/Array/Element/CompositeElement<div class="sub-desc"></div></li> </ul>
\r
486 <strong>Returns:</strong>
\r
488 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
494 <td class="msource"><a ext:cls="Ext.Element" ext:member="#appendChild" href="output/Ext.Element.html#appendChild">Element</a></td>
\r
496 <tr class="method-row inherited expandable">
\r
497 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
499 <a id="Ext.Layer-appendTo"></a>
\r
500 <b>appendTo</b>( <code>Mixed el</code> ) : Ext.Element <div class="mdesc">
\r
501 <div class="short">Appends this element to the passed element</div>
\r
503 Appends this element to the passed element <div class="mdetail-params">
\r
504 <strong>Parameters:</strong>
\r
505 <ul><li><code>el</code> : Mixed<div class="sub-desc">The new parent element</div></li> </ul>
\r
506 <strong>Returns:</strong>
\r
508 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
514 <td class="msource"><a ext:cls="Ext.Element" ext:member="#appendTo" href="output/Ext.Element.html#appendTo">Element</a></td>
\r
516 <tr class="method-row inherited alt expandable">
\r
517 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
519 <a id="Ext.Layer-applyStyles"></a>
\r
520 <b>applyStyles</b>( <code>String/Object/Function styles</code> ) : Ext.Element <div class="mdesc">
\r
521 <div class="short">More flexible version of <a ext:cls="Ext.Element" ext:member="setStyle" href="output/Ext.Element.html#setStyle">setStyle</a> for setting style properties.</div>
\r
523 More flexible version of <a ext:cls="Ext.Element" ext:member="setStyle" href="output/Ext.Element.html#setStyle">setStyle</a> for setting style properties. <div class="mdetail-params">
\r
524 <strong>Parameters:</strong>
\r
525 <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
526 a function which returns such a specification.</div></li> </ul>
\r
527 <strong>Returns:</strong>
\r
529 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
535 <td class="msource"><a ext:cls="Ext.Element" ext:member="#applyStyles" href="output/Ext.Element.html#applyStyles">Element</a></td>
\r
537 <tr class="method-row inherited expandable">
\r
538 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
540 <a id="Ext.Layer-autoHeight"></a>
\r
541 <b>autoHeight</b>( <span class="optional" title="Optional">[<code>Boolean animate</code>]</span>, <span class="optional" title="Optional">[<code>Float duration</code>]</span>, <span class="optional" title="Optional">[<code>Function onComplete</code>]</span>, <span class="optional" title="Optional">[<code>String easing</code>]</span> ) : Ext.Element <div class="mdesc">
\r
542 <div class="short">Measures the element's content height and updates height to match. Note: this function uses setTimeout so
543 the new hei...</div>
\r
545 Measures the element's content height and updates height to match. Note: this function uses setTimeout so
546 the new height may not be available immediately. <div class="mdetail-params">
\r
547 <strong>Parameters:</strong>
\r
548 <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>
\r
549 <strong>Returns:</strong>
\r
551 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
557 <td class="msource"><a ext:cls="Ext.Element" ext:member="#autoHeight" href="output/Ext.Element.html#autoHeight">Element</a></td>
\r
559 <tr class="method-row inherited alt expandable">
\r
560 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
562 <a id="Ext.Layer-blur"></a>
\r
563 <b>blur</b>() : Ext.Element <div class="mdesc">
\r
564 <div class="short">Tries to blur the element. Any exceptions are caught and ignored.</div>
\r
566 Tries to blur the element. Any exceptions are caught and ignored. <div class="mdetail-params">
\r
567 <strong>Parameters:</strong>
\r
568 <ul><li>None.</li> </ul>
\r
569 <strong>Returns:</strong>
\r
571 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
577 <td class="msource"><a ext:cls="Ext.Element" ext:member="#blur" href="output/Ext.Element.html#blur">Element</a></td>
\r
579 <tr class="method-row inherited expandable">
\r
580 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
582 <a id="Ext.Layer-boxWrap"></a>
\r
583 <b>boxWrap</b>( <span class="optional" title="Optional">[<code>String class</code>]</span> ) : Ext.Element <div class="mdesc">
\r
584 <div class="short">Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a
587 Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a
588 gradient background, rounded corners and a 4-way shadow. Example usage:
591 Ext.get("foo").boxWrap();
\r
593 // You can also add a custom class and use CSS inheritance rules to customize the box look.
\r
594 // 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example
\r
595 // for how to create a custom box wrap style.
\r
596 Ext.get("foo").boxWrap().addClass("x-box-blue");</pre></code> <div class="mdetail-params">
\r
597 <strong>Parameters:</strong>
\r
598 <ul><li><code>class</code> : String<div class="sub-desc">(optional) A base CSS class to apply to the containing wrapper element (defaults to 'x-box').
599 Note that there are a number of CSS rules that are dependent on this name to make the overall effect work,
600 so if you supply an alternate base class, make sure you also supply all of the necessary rules.</div></li> </ul>
\r
601 <strong>Returns:</strong>
\r
603 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
609 <td class="msource"><a ext:cls="Ext.Element" ext:member="#boxWrap" href="output/Ext.Element.html#boxWrap">Element</a></td>
\r
611 <tr class="method-row inherited alt expandable">
\r
612 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
614 <a id="Ext.Layer-center"></a>
\r
615 <b>center</b>( <span class="optional" title="Optional">[<code>Mixed centerIn</code>]</span> ) : void <div class="mdesc">
\r
616 <div class="short">Centers the Element in either the viewport, or another Element.</div>
\r
618 Centers the Element in either the viewport, or another Element. <div class="mdetail-params">
\r
619 <strong>Parameters:</strong>
\r
620 <ul><li><code>centerIn</code> : Mixed<div class="sub-desc">(optional) The element in which to center the element.</div></li> </ul>
\r
621 <strong>Returns:</strong>
\r
623 <li><code>void</code></li>
\r
629 <td class="msource"><a ext:cls="Ext.Element" ext:member="#center" href="output/Ext.Element.html#center">Element</a></td>
\r
631 <tr class="method-row inherited expandable">
\r
632 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
634 <a id="Ext.Layer-child"></a>
\r
635 <b>child</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : HTMLElement/Ext.Element <div class="mdesc">
\r
636 <div class="short">Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont...</div>
\r
638 Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id). <div class="mdetail-params">
\r
639 <strong>Parameters:</strong>
\r
640 <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>
\r
641 <strong>Returns:</strong>
\r
643 <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The child Ext.Element (or DOM node if returnDom = true)</div></li>
\r
649 <td class="msource"><a ext:cls="Ext.Element" ext:member="#child" href="output/Ext.Element.html#child">Element</a></td>
\r
651 <tr class="method-row inherited alt expandable">
\r
652 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
654 <a id="Ext.Layer-clean"></a>
\r
655 <b>clean</b>( <span class="optional" title="Optional">[<code>Boolean forceReclean</code>]</span> ) : void <div class="mdesc">
\r
656 <div class="short">Removes worthless text nodes</div>
\r
658 Removes worthless text nodes <div class="mdetail-params">
\r
659 <strong>Parameters:</strong>
\r
660 <ul><li><code>forceReclean</code> : Boolean<div class="sub-desc">(optional) By default the element
661 keeps track if it has been cleaned already so
662 you can call this over and over. However, if you update the element and
663 need to force a reclean, you can pass true.</div></li> </ul>
\r
664 <strong>Returns:</strong>
\r
666 <li><code>void</code></li>
\r
672 <td class="msource"><a ext:cls="Ext.Element" ext:member="#clean" href="output/Ext.Element.html#clean">Element</a></td>
\r
674 <tr class="method-row inherited expandable">
\r
675 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
677 <a id="Ext.Layer-clearOpacity"></a>
\r
678 <b>clearOpacity</b>() : Ext.Element <div class="mdesc">
\r
679 <div class="short">Clears any opacity settings from this element. Required in some cases for IE.</div>
\r
681 Clears any opacity settings from this element. Required in some cases for IE. <div class="mdetail-params">
\r
682 <strong>Parameters:</strong>
\r
683 <ul><li>None.</li> </ul>
\r
684 <strong>Returns:</strong>
\r
686 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
692 <td class="msource"><a ext:cls="Ext.Element" ext:member="#clearOpacity" href="output/Ext.Element.html#clearOpacity">Element</a></td>
\r
694 <tr class="method-row inherited alt expandable">
\r
695 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
697 <a id="Ext.Layer-clearPositioning"></a>
\r
698 <b>clearPositioning</b>( <span class="optional" title="Optional">[<code>String value</code>]</span> ) : Ext.Element <div class="mdesc">
\r
699 <div class="short">Clear positioning back to the default when the document was loaded</div>
\r
701 Clear positioning back to the default when the document was loaded <div class="mdetail-params">
\r
702 <strong>Parameters:</strong>
\r
703 <ul><li><code>value</code> : String<div class="sub-desc">(optional) The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.</div></li> </ul>
\r
704 <strong>Returns:</strong>
\r
706 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
712 <td class="msource"><a ext:cls="Ext.Element" ext:member="#clearPositioning" href="output/Ext.Element.html#clearPositioning">Element</a></td>
\r
714 <tr class="method-row inherited expandable">
\r
715 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
717 <a id="Ext.Layer-clip"></a>
\r
718 <b>clip</b>() : Ext.Element <div class="mdesc">
\r
719 <div class="short">Store the current overflow setting and clip overflow on the element - use <a ext:cls="Ext.Element" ext:member="unclip" href="output/Ext.Element.html#unclip">unclip</a> to remove</div>
\r
721 Store the current overflow setting and clip overflow on the element - use <a ext:cls="Ext.Element" ext:member="unclip" href="output/Ext.Element.html#unclip">unclip</a> to remove <div class="mdetail-params">
\r
722 <strong>Parameters:</strong>
\r
723 <ul><li>None.</li> </ul>
\r
724 <strong>Returns:</strong>
\r
726 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
732 <td class="msource"><a ext:cls="Ext.Element" ext:member="#clip" href="output/Ext.Element.html#clip">Element</a></td>
\r
734 <tr class="method-row inherited alt expandable">
\r
735 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
737 <a id="Ext.Layer-contains"></a>
\r
738 <b>contains</b>( <code>HTMLElement/String el</code> ) : Boolean <div class="mdesc">
\r
739 <div class="short">Returns true if this element is an ancestor of the passed element</div>
\r
741 Returns true if this element is an ancestor of the passed element <div class="mdetail-params">
\r
742 <strong>Parameters:</strong>
\r
743 <ul><li><code>el</code> : HTMLElement/String<div class="sub-desc">The element to check</div></li> </ul>
\r
744 <strong>Returns:</strong>
\r
746 <li><code>Boolean</code><div class="sub-desc">True if this element is an ancestor of el, else false</div></li>
\r
752 <td class="msource"><a ext:cls="Ext.Element" ext:member="#contains" href="output/Ext.Element.html#contains">Element</a></td>
\r
754 <tr class="method-row inherited expandable">
\r
755 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
757 <a id="Ext.Layer-createChild"></a>
\r
758 <b>createChild</b>( <code>Object config</code>, <span class="optional" title="Optional">[<code>HTMLElement insertBefore</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element <div class="mdesc">
\r
759 <div class="short">Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...</div>
\r
761 Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element. <div class="mdetail-params">
\r
762 <strong>Parameters:</strong>
\r
763 <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
764 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>
\r
765 <strong>Returns:</strong>
\r
767 <li><code>Ext.Element</code><div class="sub-desc">The new child element</div></li>
\r
773 <td class="msource"><a ext:cls="Ext.Element" ext:member="#createChild" href="output/Ext.Element.html#createChild">Element</a></td>
\r
775 <tr class="method-row inherited alt expandable">
\r
776 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
778 <a id="Ext.Layer-createProxy"></a>
\r
779 <b>createProxy</b>( <code>String/Object config</code>, <span class="optional" title="Optional">[<code>String/HTMLElement renderTo</code>]</span>, <span class="optional" title="Optional">[<code>Boolean matchBox</code>]</span> ) : Ext.Element <div class="mdesc">
\r
780 <div class="short">Creates a proxy element of this element</div>
\r
782 Creates a proxy element of this element <div class="mdetail-params">
\r
783 <strong>Parameters:</strong>
\r
784 <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>
\r
785 <strong>Returns:</strong>
\r
787 <li><code>Ext.Element</code><div class="sub-desc">The new proxy element</div></li>
\r
793 <td class="msource"><a ext:cls="Ext.Element" ext:member="#createProxy" href="output/Ext.Element.html#createProxy">Element</a></td>
\r
795 <tr class="method-row inherited expandable">
\r
796 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
798 <a id="Ext.Layer-createShim"></a>
\r
799 <b>createShim</b>() : Ext.Element <div class="mdesc">
\r
800 <div class="short">Creates an iframe shim for this element to keep selects and other windowed objects from
801 showing through.</div>
\r
803 Creates an iframe shim for this element to keep selects and other windowed objects from
804 showing through. <div class="mdetail-params">
\r
805 <strong>Parameters:</strong>
\r
806 <ul><li>None.</li> </ul>
\r
807 <strong>Returns:</strong>
\r
809 <li><code>Ext.Element</code><div class="sub-desc">The new shim element</div></li>
\r
815 <td class="msource"><a ext:cls="Ext.Element" ext:member="#createShim" href="output/Ext.Element.html#createShim">Element</a></td>
\r
817 <tr class="method-row inherited alt expandable">
\r
818 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
820 <a id="Ext.Layer-down"></a>
\r
821 <b>down</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : HTMLElement/Ext.Element <div class="mdesc">
\r
822 <div class="short">Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).</div>
\r
824 Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id). <div class="mdetail-params">
\r
825 <strong>Parameters:</strong>
\r
826 <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>
\r
827 <strong>Returns:</strong>
\r
829 <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The child Ext.Element (or DOM node if returnDom = true)</div></li>
\r
835 <td class="msource"><a ext:cls="Ext.Element" ext:member="#down" href="output/Ext.Element.html#down">Element</a></td>
\r
837 <tr class="method-row inherited expandable">
\r
838 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
840 <a id="Ext.Layer-enableDisplayMode"></a>
\r
841 <b>enableDisplayMode</b>( <span class="optional" title="Optional">[<code>String display</code>]</span> ) : Ext.Element <div class="mdesc">
\r
842 <div class="short">Convenience method for setVisibilityMode(Element.DISPLAY)</div>
\r
844 Convenience method for setVisibilityMode(Element.DISPLAY) <div class="mdetail-params">
\r
845 <strong>Parameters:</strong>
\r
846 <ul><li><code>display</code> : String<div class="sub-desc">(optional) What to set display to when visible</div></li> </ul>
\r
847 <strong>Returns:</strong>
\r
849 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
855 <td class="msource"><a ext:cls="Ext.Element" ext:member="#enableDisplayMode" href="output/Ext.Element.html#enableDisplayMode">Element</a></td>
\r
857 <tr class="method-row inherited alt expandable">
\r
858 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
860 <a id="Ext.Layer-findParent"></a>
\r
861 <b>findParent</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Number/Mixed maxDepth</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnEl</code>]</span> ) : HTMLElement <div class="mdesc">
\r
862 <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>
\r
864 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">
\r
865 <strong>Parameters:</strong>
\r
866 <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
867 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>
\r
868 <strong>Returns:</strong>
\r
870 <li><code>HTMLElement</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li>
\r
876 <td class="msource"><a ext:cls="Ext.Element" ext:member="#findParent" href="output/Ext.Element.html#findParent">Element</a></td>
\r
878 <tr class="method-row inherited expandable">
\r
879 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
881 <a id="Ext.Layer-findParentNode"></a>
\r
882 <b>findParentNode</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Number/Mixed maxDepth</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnEl</code>]</span> ) : HTMLElement <div class="mdesc">
\r
883 <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>
\r
885 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">
\r
886 <strong>Parameters:</strong>
\r
887 <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
888 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>
\r
889 <strong>Returns:</strong>
\r
891 <li><code>HTMLElement</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li>
\r
897 <td class="msource"><a ext:cls="Ext.Element" ext:member="#findParentNode" href="output/Ext.Element.html#findParentNode">Element</a></td>
\r
899 <tr class="method-row inherited alt expandable">
\r
900 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
902 <a id="Ext.Layer-first"></a>
\r
903 <b>first</b>( <span class="optional" title="Optional">[<code>String selector</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element/HTMLElement <div class="mdesc">
\r
904 <div class="short">Gets the first child, skipping text nodes</div>
\r
906 Gets the first child, skipping text nodes <div class="mdetail-params">
\r
907 <strong>Parameters:</strong>
\r
908 <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>
\r
909 <strong>Returns:</strong>
\r
911 <li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The first child or null</div></li>
\r
917 <td class="msource"><a ext:cls="Ext.Element" ext:member="#first" href="output/Ext.Element.html#first">Element</a></td>
\r
919 <tr class="method-row inherited expandable">
\r
920 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
922 <a id="Ext.Layer-focus"></a>
\r
923 <b>focus</b>() : Ext.Element <div class="mdesc">
\r
924 <div class="short">Tries to focus the element. Any exceptions are caught and ignored.</div>
\r
926 Tries to focus the element. Any exceptions are caught and ignored. <div class="mdetail-params">
\r
927 <strong>Parameters:</strong>
\r
928 <ul><li>None.</li> </ul>
\r
929 <strong>Returns:</strong>
\r
931 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
937 <td class="msource"><a ext:cls="Ext.Element" ext:member="#focus" href="output/Ext.Element.html#focus">Element</a></td>
\r
939 <tr class="method-row inherited alt expandable">
\r
940 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
942 <a id="Ext.Layer-getAlignToXY"></a>
\r
943 <b>getAlignToXY</b>( <code>Mixed element</code>, <code>String position</code>, <span class="optional" title="Optional">[<code>Array offsets</code>]</span> ) : Array <div class="mdesc">
\r
944 <div class="short">Gets the x,y coordinates to align this element with another element. See alignTo for more info on the
945 supported posit...</div>
\r
947 Gets the x,y coordinates to align this element with another element. See <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">alignTo</a> for more info on the
948 supported position values. <div class="mdetail-params">
\r
949 <strong>Parameters:</strong>
\r
950 <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> </ul>
\r
951 <strong>Returns:</strong>
\r
953 <li><code>Array</code><div class="sub-desc">[x, y]</div></li>
\r
959 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getAlignToXY" href="output/Ext.Element.html#getAlignToXY">Element</a></td>
\r
961 <tr class="method-row inherited expandable">
\r
962 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
964 <a id="Ext.Layer-getAnchorXY"></a>
\r
965 <b>getAnchorXY</b>( <span class="optional" title="Optional">[<code>String anchor</code>]</span>, <span class="optional" title="Optional">[<code>Boolean local</code>]</span>, <span class="optional" title="Optional">[<code>Object size</code>]</span> ) : Array <div class="mdesc">
\r
966 <div class="short">Gets the x,y coordinates specified by the anchor position on the element.</div>
\r
968 Gets the x,y coordinates specified by the anchor position on the element. <div class="mdetail-params">
\r
969 <strong>Parameters:</strong>
\r
970 <ul><li><code>anchor</code> : String<div class="sub-desc">(optional) The specified anchor position (defaults to "c"). See <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">alignTo</a>
971 for details on supported anchor positions.</div></li><li><code>local</code> : Boolean<div class="sub-desc">(optional) True to get the local (element top/left-relative) anchor position instead
972 of page coordinates</div></li><li><code>size</code> : Object<div class="sub-desc">(optional) An object containing the size to use for calculating anchor position
973 {width: (target width), height: (target height)} (defaults to the element's current size)</div></li> </ul>
\r
974 <strong>Returns:</strong>
\r
976 <li><code>Array</code><div class="sub-desc">[x, y] An array containing the element's x and y coordinates</div></li>
\r
982 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getAnchorXY" href="output/Ext.Element.html#getAnchorXY">Element</a></td>
\r
984 <tr class="method-row inherited alt expandable">
\r
985 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
987 <a id="Ext.Layer-getAttributeNS"></a>
\r
988 <b>getAttributeNS</b>( <code>String namespace</code>, <code>String name</code> ) : String <div class="mdesc">
\r
989 <div class="short">Returns the value of a namespaced attribute from the element's underlying DOM node.</div>
\r
991 Returns the value of a namespaced attribute from the element's underlying DOM node. <div class="mdetail-params">
\r
992 <strong>Parameters:</strong>
\r
993 <ul><li><code>namespace</code> : String<div class="sub-desc">The namespace in which to look for the attribute</div></li><li><code>name</code> : String<div class="sub-desc">The attribute name</div></li> </ul>
\r
994 <strong>Returns:</strong>
\r
996 <li><code>String</code><div class="sub-desc">The attribute value</div></li>
\r
1002 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getAttributeNS" href="output/Ext.Element.html#getAttributeNS">Element</a></td>
\r
1004 <tr class="method-row inherited expandable">
\r
1005 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1007 <a id="Ext.Layer-getBorderWidth"></a>
\r
1008 <b>getBorderWidth</b>( <code>String side</code> ) : Number <div class="mdesc">
\r
1009 <div class="short">Gets the width of the border(s) for the specified side(s)</div>
\r
1010 <div class="long">
\r
1011 Gets the width of the border(s) for the specified side(s) <div class="mdetail-params">
\r
1012 <strong>Parameters:</strong>
\r
1013 <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,
1014 passing lr would get the border (l)eft width + the border (r)ight width.</div></li> </ul>
\r
1015 <strong>Returns:</strong>
\r
1017 <li><code>Number</code><div class="sub-desc">The width of the sides passed added together</div></li>
\r
1023 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getBorderWidth" href="output/Ext.Element.html#getBorderWidth">Element</a></td>
\r
1025 <tr class="method-row inherited alt expandable">
\r
1026 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1028 <a id="Ext.Layer-getBottom"></a>
\r
1029 <b>getBottom</b>( <code>Boolean local</code> ) : Number <div class="mdesc">
\r
1030 <div class="short">Gets the bottom Y coordinate of the element (element Y position + element height)</div>
\r
1031 <div class="long">
\r
1032 Gets the bottom Y coordinate of the element (element Y position + element height) <div class="mdetail-params">
\r
1033 <strong>Parameters:</strong>
\r
1034 <ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li> </ul>
\r
1035 <strong>Returns:</strong>
\r
1037 <li><code>Number</code></li>
\r
1043 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getBottom" href="output/Ext.Element.html#getBottom">Element</a></td>
\r
1045 <tr class="method-row inherited expandable">
\r
1046 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1048 <a id="Ext.Layer-getBox"></a>
\r
1049 <b>getBox</b>( <span class="optional" title="Optional">[<code>Boolean contentBox</code>]</span>, <span class="optional" title="Optional">[<code>Boolean local</code>]</span> ) : Object <div class="mdesc">
\r
1050 <div class="short">Return a box {x, y, width, height} that can be used to set another elements
1051 size/location to match this element.</div>
\r
1052 <div class="long">
\r
1053 Return a box {x, y, width, height} that can be used to set another elements
1054 size/location to match this element. <div class="mdetail-params">
\r
1055 <strong>Parameters:</strong>
\r
1056 <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>
\r
1057 <strong>Returns:</strong>
\r
1059 <li><code>Object</code><div class="sub-desc">box An object in the format {x, y, width, height}</div></li>
\r
1065 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getBox" href="output/Ext.Element.html#getBox">Element</a></td>
\r
1067 <tr class="method-row inherited alt expandable">
\r
1068 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1070 <a id="Ext.Layer-getCenterXY"></a>
\r
1071 <b>getCenterXY</b>() : Array <div class="mdesc">
\r
1072 <div class="short">Calculates the x, y to center this element on the screen</div>
\r
1073 <div class="long">
\r
1074 Calculates the x, y to center this element on the screen <div class="mdetail-params">
\r
1075 <strong>Parameters:</strong>
\r
1076 <ul><li>None.</li> </ul>
\r
1077 <strong>Returns:</strong>
\r
1079 <li><code>Array</code><div class="sub-desc">The x, y values [x, y]</div></li>
\r
1085 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getCenterXY" href="output/Ext.Element.html#getCenterXY">Element</a></td>
\r
1087 <tr class="method-row inherited expandable">
\r
1088 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1090 <a id="Ext.Layer-getColor"></a>
\r
1091 <b>getColor</b>( <code>String attr</code>, <code>String defaultValue</code>, <span class="optional" title="Optional">[<code>String prefix</code>]</span> ) : void <div class="mdesc">
\r
1092 <div class="short">Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values
1093 are convert to standa...</div>
\r
1094 <div class="long">
\r
1095 Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values
1096 are convert to standard 6 digit hex color. <div class="mdetail-params">
\r
1097 <strong>Parameters:</strong>
\r
1098 <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
1099 color anims.</div></li> </ul>
\r
1100 <strong>Returns:</strong>
\r
1102 <li><code>void</code></li>
\r
1108 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getColor" href="output/Ext.Element.html#getColor">Element</a></td>
\r
1110 <tr class="method-row inherited alt expandable">
\r
1111 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1113 <a id="Ext.Layer-getComputedHeight"></a>
\r
1114 <b>getComputedHeight</b>() : Number <div class="mdesc">
\r
1115 <div class="short">Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
1117 <div class="long">
\r
1118 Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
1119 when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements
1120 if a height has not been set using CSS. <div class="mdetail-params">
\r
1121 <strong>Parameters:</strong>
\r
1122 <ul><li>None.</li> </ul>
\r
1123 <strong>Returns:</strong>
\r
1125 <li><code>Number</code></li>
\r
1131 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getComputedHeight" href="output/Ext.Element.html#getComputedHeight">Element</a></td>
\r
1133 <tr class="method-row inherited expandable">
\r
1134 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1136 <a id="Ext.Layer-getComputedWidth"></a>
\r
1137 <b>getComputedWidth</b>() : Number <div class="mdesc">
\r
1138 <div class="short">Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
1140 <div class="long">
\r
1141 Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
1142 when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements
1143 if a width has not been set using CSS. <div class="mdetail-params">
\r
1144 <strong>Parameters:</strong>
\r
1145 <ul><li>None.</li> </ul>
\r
1146 <strong>Returns:</strong>
\r
1148 <li><code>Number</code></li>
\r
1154 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getComputedWidth" href="output/Ext.Element.html#getComputedWidth">Element</a></td>
\r
1156 <tr class="method-row inherited alt expandable">
\r
1157 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1159 <a id="Ext.Layer-getFrameWidth"></a>
\r
1160 <b>getFrameWidth</b>( <code>String sides</code> ) : Number <div class="mdesc">
\r
1161 <div class="short">Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
\r
1162 for more informat...</div>
\r
1163 <div class="long">
\r
1164 Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
\r
1165 for more information about the sides. <div class="mdetail-params">
\r
1166 <strong>Parameters:</strong>
\r
1167 <ul><li><code>sides</code> : String<div class="sub-desc"></div></li> </ul>
\r
1168 <strong>Returns:</strong>
\r
1170 <li><code>Number</code></li>
\r
1176 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getFrameWidth" href="output/Ext.Element.html#getFrameWidth">Element</a></td>
\r
1178 <tr class="method-row inherited expandable">
\r
1179 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1181 <a id="Ext.Layer-getHeight"></a>
\r
1182 <b>getHeight</b>( <span class="optional" title="Optional">[<code>Boolean contentHeight</code>]</span> ) : Number <div class="mdesc">
\r
1183 <div class="short">Returns the offset height of the element</div>
\r
1184 <div class="long">
\r
1185 Returns the offset height of the element <div class="mdetail-params">
\r
1186 <strong>Parameters:</strong>
\r
1187 <ul><li><code>contentHeight</code> : Boolean<div class="sub-desc">(optional) true to get the height minus borders and padding</div></li> </ul>
\r
1188 <strong>Returns:</strong>
\r
1190 <li><code>Number</code><div class="sub-desc">The element's height</div></li>
\r
1196 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getHeight" href="output/Ext.Element.html#getHeight">Element</a></td>
\r
1198 <tr class="method-row inherited alt expandable">
\r
1199 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1201 <a id="Ext.Layer-getLeft"></a>
\r
1202 <b>getLeft</b>( <code>Boolean local</code> ) : Number <div class="mdesc">
\r
1203 <div class="short">Gets the left X coordinate</div>
\r
1204 <div class="long">
\r
1205 Gets the left X coordinate <div class="mdetail-params">
\r
1206 <strong>Parameters:</strong>
\r
1207 <ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li> </ul>
\r
1208 <strong>Returns:</strong>
\r
1210 <li><code>Number</code></li>
\r
1216 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getLeft" href="output/Ext.Element.html#getLeft">Element</a></td>
\r
1218 <tr class="method-row inherited expandable">
\r
1219 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1221 <a id="Ext.Layer-getMargins"></a>
\r
1222 <b>getMargins</b>( <span class="optional" title="Optional">[<code>String sides</code>]</span> ) : Object/Number <div class="mdesc">
\r
1223 <div class="short">Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i...</div>
\r
1224 <div class="long">
\r
1225 Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,
1226 then it returns the calculated width of the sides (see getPadding) <div class="mdetail-params">
\r
1227 <strong>Parameters:</strong>
\r
1228 <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>
\r
1229 <strong>Returns:</strong>
\r
1231 <li><code>Object/Number</code></li>
\r
1237 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getMargins" href="output/Ext.Element.html#getMargins">Element</a></td>
\r
1239 <tr class="method-row inherited alt expandable">
\r
1240 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1242 <a id="Ext.Layer-getOffsetsTo"></a>
\r
1243 <b>getOffsetsTo</b>( <code>Mixed element</code> ) : Array <div class="mdesc">
\r
1244 <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>
\r
1245 <div class="long">
\r
1246 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">
\r
1247 <strong>Parameters:</strong>
\r
1248 <ul><li><code>element</code> : Mixed<div class="sub-desc">The element to get the offsets from.</div></li> </ul>
\r
1249 <strong>Returns:</strong>
\r
1251 <li><code>Array</code><div class="sub-desc">The XY page offsets (e.g. [100, -200])</div></li>
\r
1257 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getOffsetsTo" href="output/Ext.Element.html#getOffsetsTo">Element</a></td>
\r
1259 <tr class="method-row inherited expandable">
\r
1260 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1262 <a id="Ext.Layer-getPadding"></a>
\r
1263 <b>getPadding</b>( <code>String side</code> ) : Number <div class="mdesc">
\r
1264 <div class="short">Gets the width of the padding(s) for the specified side(s)</div>
\r
1265 <div class="long">
\r
1266 Gets the width of the padding(s) for the specified side(s) <div class="mdetail-params">
\r
1267 <strong>Parameters:</strong>
\r
1268 <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,
1269 passing lr would get the padding (l)eft + the padding (r)ight.</div></li> </ul>
\r
1270 <strong>Returns:</strong>
\r
1272 <li><code>Number</code><div class="sub-desc">The padding of the sides passed added together</div></li>
\r
1278 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getPadding" href="output/Ext.Element.html#getPadding">Element</a></td>
\r
1280 <tr class="method-row inherited alt expandable">
\r
1281 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1283 <a id="Ext.Layer-getPositioning"></a>
\r
1284 <b>getPositioning</b>() : Object <div class="mdesc">
\r
1285 <div class="short">Gets an object with all CSS positioning properties. Useful along with setPostioning to get
1286 snapshot before performing...</div>
\r
1287 <div class="long">
\r
1288 Gets an object with all CSS positioning properties. Useful along with setPostioning to get
1289 snapshot before performing an update and then restoring the element. <div class="mdetail-params">
\r
1290 <strong>Parameters:</strong>
\r
1291 <ul><li>None.</li> </ul>
\r
1292 <strong>Returns:</strong>
\r
1294 <li><code>Object</code></li>
\r
1300 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getPositioning" href="output/Ext.Element.html#getPositioning">Element</a></td>
\r
1302 <tr class="method-row inherited expandable">
\r
1303 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1305 <a id="Ext.Layer-getRegion"></a>
\r
1306 <b>getRegion</b>() : Region <div class="mdesc">
\r
1307 <div class="short">Returns the region of the given element.
1308 The element must be part of the DOM tree to have a region (display:none or e...</div>
\r
1309 <div class="long">
\r
1310 Returns the region of the given element.
1311 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">
\r
1312 <strong>Parameters:</strong>
\r
1313 <ul><li>None.</li> </ul>
\r
1314 <strong>Returns:</strong>
\r
1316 <li><code>Region</code><div class="sub-desc">A Ext.lib.Region containing "top, left, bottom, right" member data.</div></li>
\r
1322 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getRegion" href="output/Ext.Element.html#getRegion">Element</a></td>
\r
1324 <tr class="method-row inherited alt expandable">
\r
1325 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1327 <a id="Ext.Layer-getRight"></a>
\r
1328 <b>getRight</b>( <code>Boolean local</code> ) : Number <div class="mdesc">
\r
1329 <div class="short">Gets the right X coordinate of the element (element X position + element width)</div>
\r
1330 <div class="long">
\r
1331 Gets the right X coordinate of the element (element X position + element width) <div class="mdetail-params">
\r
1332 <strong>Parameters:</strong>
\r
1333 <ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li> </ul>
\r
1334 <strong>Returns:</strong>
\r
1336 <li><code>Number</code></li>
\r
1342 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getRight" href="output/Ext.Element.html#getRight">Element</a></td>
\r
1344 <tr class="method-row inherited expandable">
\r
1345 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1347 <a id="Ext.Layer-getScroll"></a>
\r
1348 <b>getScroll</b>() : Object <div class="mdesc">
\r
1349 <div class="short">Returns the current scroll position of the element.</div>
\r
1350 <div class="long">
\r
1351 Returns the current scroll position of the element. <div class="mdetail-params">
\r
1352 <strong>Parameters:</strong>
\r
1353 <ul><li>None.</li> </ul>
\r
1354 <strong>Returns:</strong>
\r
1356 <li><code>Object</code><div class="sub-desc">An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}</div></li>
\r
1362 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getScroll" href="output/Ext.Element.html#getScroll">Element</a></td>
\r
1364 <tr class="method-row inherited alt expandable">
\r
1365 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1367 <a id="Ext.Layer-getSize"></a>
\r
1368 <b>getSize</b>( <span class="optional" title="Optional">[<code>Boolean contentSize</code>]</span> ) : Object <div class="mdesc">
\r
1369 <div class="short">Returns the size of the element.</div>
\r
1370 <div class="long">
\r
1371 Returns the size of the element. <div class="mdetail-params">
\r
1372 <strong>Parameters:</strong>
\r
1373 <ul><li><code>contentSize</code> : Boolean<div class="sub-desc">(optional) true to get the width/size minus borders and padding</div></li> </ul>
\r
1374 <strong>Returns:</strong>
\r
1376 <li><code>Object</code><div class="sub-desc">An object containing the element's size {width: (element width), height: (element height)}</div></li>
\r
1382 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getSize" href="output/Ext.Element.html#getSize">Element</a></td>
\r
1384 <tr class="method-row inherited expandable">
\r
1385 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1387 <a id="Ext.Layer-getStyle"></a>
\r
1388 <b>getStyle</b>( <code>String property</code> ) : String <div class="mdesc">
\r
1389 <div class="short">Normalizes currentStyle and computedStyle.</div>
\r
1390 <div class="long">
\r
1391 Normalizes currentStyle and computedStyle. <div class="mdetail-params">
\r
1392 <strong>Parameters:</strong>
\r
1393 <ul><li><code>property</code> : String<div class="sub-desc">The style property whose value is returned.</div></li> </ul>
\r
1394 <strong>Returns:</strong>
\r
1396 <li><code>String</code><div class="sub-desc">The current value of the style property for this element.</div></li>
\r
1402 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getStyle" href="output/Ext.Element.html#getStyle">Element</a></td>
\r
1404 <tr class="method-row inherited alt expandable">
\r
1405 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1407 <a id="Ext.Layer-getStyles"></a>
\r
1408 <b>getStyles</b>( <code>String style1</code>, <code>String style2</code>, <code>String etc.</code> ) : Object <div class="mdesc">
\r
1409 <div class="short">Returns an object with properties matching the styles requested.
1410 For example, el.getStyles('color', 'font-size', 'wid...</div>
\r
1411 <div class="long">
\r
1412 Returns an object with properties matching the styles requested.
1413 For example, el.getStyles('color', 'font-size', 'width') might return
1414 {'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}. <div class="mdetail-params">
\r
1415 <strong>Parameters:</strong>
\r
1416 <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>
\r
1417 <strong>Returns:</strong>
\r
1419 <li><code>Object</code><div class="sub-desc">The style object</div></li>
\r
1425 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getStyles" href="output/Ext.Element.html#getStyles">Element</a></td>
\r
1427 <tr class="method-row inherited expandable">
\r
1428 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1430 <a id="Ext.Layer-getTextWidth"></a>
\r
1431 <b>getTextWidth</b>( <code>String text</code>, <span class="optional" title="Optional">[<code>Number min</code>]</span>, <span class="optional" title="Optional">[<code>Number max</code>]</span> ) : Number <div class="mdesc">
\r
1432 <div class="short">Returns the width in pixels of the passed text, or the width of the text in this Element.</div>
\r
1433 <div class="long">
\r
1434 Returns the width in pixels of the passed text, or the width of the text in this Element. <div class="mdetail-params">
\r
1435 <strong>Parameters:</strong>
\r
1436 <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>
\r
1437 <strong>Returns:</strong>
\r
1439 <li><code>Number</code><div class="sub-desc">The text width in pixels.</div></li>
\r
1445 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getTextWidth" href="output/Ext.Element.html#getTextWidth">Element</a></td>
\r
1447 <tr class="method-row inherited alt expandable">
\r
1448 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1450 <a id="Ext.Layer-getTop"></a>
\r
1451 <b>getTop</b>( <code>Boolean local</code> ) : Number <div class="mdesc">
\r
1452 <div class="short">Gets the top Y coordinate</div>
\r
1453 <div class="long">
\r
1454 Gets the top Y coordinate <div class="mdetail-params">
\r
1455 <strong>Parameters:</strong>
\r
1456 <ul><li><code>local</code> : Boolean<div class="sub-desc">True to get the local css position instead of page coordinate</div></li> </ul>
\r
1457 <strong>Returns:</strong>
\r
1459 <li><code>Number</code></li>
\r
1465 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getTop" href="output/Ext.Element.html#getTop">Element</a></td>
\r
1467 <tr class="method-row inherited expandable">
\r
1468 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1470 <a id="Ext.Layer-getUpdater"></a>
\r
1471 <b>getUpdater</b>() : Ext.Updater <div class="mdesc">
\r
1472 <div class="short">Gets this element's Updater</div>
\r
1473 <div class="long">
\r
1474 Gets this element's Updater <div class="mdetail-params">
\r
1475 <strong>Parameters:</strong>
\r
1476 <ul><li>None.</li> </ul>
\r
1477 <strong>Returns:</strong>
\r
1479 <li><code>Ext.Updater</code><div class="sub-desc">The Updater</div></li>
\r
1485 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getUpdater" href="output/Ext.Element.html#getUpdater">Element</a></td>
\r
1487 <tr class="method-row inherited alt expandable">
\r
1488 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1490 <a id="Ext.Layer-getValue"></a>
\r
1491 <b>getValue</b>( <code>Boolean asNumber</code> ) : String/Number <div class="mdesc">
\r
1492 <div class="short">Returns the value of the "value" attribute</div>
\r
1493 <div class="long">
\r
1494 Returns the value of the "value" attribute <div class="mdetail-params">
\r
1495 <strong>Parameters:</strong>
\r
1496 <ul><li><code>asNumber</code> : Boolean<div class="sub-desc">true to parse the value as a number</div></li> </ul>
\r
1497 <strong>Returns:</strong>
\r
1499 <li><code>String/Number</code></li>
\r
1505 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getValue" href="output/Ext.Element.html#getValue">Element</a></td>
\r
1507 <tr class="method-row inherited expandable">
\r
1508 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1510 <a id="Ext.Layer-getViewSize"></a>
\r
1511 <b>getViewSize</b>() : Object <div class="mdesc">
\r
1512 <div class="short">Returns the width and height of the viewport.</div>
\r
1513 <div class="long">
\r
1514 Returns the width and height of the viewport. <div class="mdetail-params">
\r
1515 <strong>Parameters:</strong>
\r
1516 <ul><li>None.</li> </ul>
\r
1517 <strong>Returns:</strong>
\r
1519 <li><code>Object</code><div class="sub-desc">An object containing the viewport's size {width: (viewport width), height: (viewport height)}</div></li>
\r
1525 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getViewSize" href="output/Ext.Element.html#getViewSize">Element</a></td>
\r
1527 <tr class="method-row inherited alt expandable">
\r
1528 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1530 <a id="Ext.Layer-getWidth"></a>
\r
1531 <b>getWidth</b>( <span class="optional" title="Optional">[<code>Boolean contentWidth</code>]</span> ) : Number <div class="mdesc">
\r
1532 <div class="short">Returns the offset width of the element</div>
\r
1533 <div class="long">
\r
1534 Returns the offset width of the element <div class="mdetail-params">
\r
1535 <strong>Parameters:</strong>
\r
1536 <ul><li><code>contentWidth</code> : Boolean<div class="sub-desc">(optional) true to get the width minus borders and padding</div></li> </ul>
\r
1537 <strong>Returns:</strong>
\r
1539 <li><code>Number</code><div class="sub-desc">The element's width</div></li>
\r
1545 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getWidth" href="output/Ext.Element.html#getWidth">Element</a></td>
\r
1547 <tr class="method-row inherited expandable">
\r
1548 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1550 <a id="Ext.Layer-getX"></a>
\r
1551 <b>getX</b>() : Number <div class="mdesc">
\r
1552 <div class="short">Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have p...</div>
\r
1553 <div class="long">
\r
1554 Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). <div class="mdetail-params">
\r
1555 <strong>Parameters:</strong>
\r
1556 <ul><li>None.</li> </ul>
\r
1557 <strong>Returns:</strong>
\r
1559 <li><code>Number</code><div class="sub-desc">The X position of the element</div></li>
\r
1565 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getX" href="output/Ext.Element.html#getX">Element</a></td>
\r
1567 <tr class="method-row inherited alt expandable">
\r
1568 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1570 <a id="Ext.Layer-getXY"></a>
\r
1571 <b>getXY</b>() : Array <div class="mdesc">
\r
1572 <div class="short">Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have pag...</div>
\r
1573 <div class="long">
\r
1574 Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). <div class="mdetail-params">
\r
1575 <strong>Parameters:</strong>
\r
1576 <ul><li>None.</li> </ul>
\r
1577 <strong>Returns:</strong>
\r
1579 <li><code>Array</code><div class="sub-desc">The XY position of the element</div></li>
\r
1585 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getXY" href="output/Ext.Element.html#getXY">Element</a></td>
\r
1587 <tr class="method-row inherited expandable">
\r
1588 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1590 <a id="Ext.Layer-getY"></a>
\r
1591 <b>getY</b>() : Number <div class="mdesc">
\r
1592 <div class="short">Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have p...</div>
\r
1593 <div class="long">
\r
1594 Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). <div class="mdetail-params">
\r
1595 <strong>Parameters:</strong>
\r
1596 <ul><li>None.</li> </ul>
\r
1597 <strong>Returns:</strong>
\r
1599 <li><code>Number</code><div class="sub-desc">The Y position of the element</div></li>
\r
1605 <td class="msource"><a ext:cls="Ext.Element" ext:member="#getY" href="output/Ext.Element.html#getY">Element</a></td>
\r
1607 <tr class="method-row inherited alt expandable">
\r
1608 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1610 <a id="Ext.Layer-hasClass"></a>
\r
1611 <b>hasClass</b>( <code>String className</code> ) : Boolean <div class="mdesc">
\r
1612 <div class="short">Checks if the specified CSS class exists on this element's DOM node.</div>
\r
1613 <div class="long">
\r
1614 Checks if the specified CSS class exists on this element's DOM node. <div class="mdetail-params">
\r
1615 <strong>Parameters:</strong>
\r
1616 <ul><li><code>className</code> : String<div class="sub-desc">The CSS class to check for</div></li> </ul>
\r
1617 <strong>Returns:</strong>
\r
1619 <li><code>Boolean</code><div class="sub-desc">True if the class exists, else false</div></li>
\r
1625 <td class="msource"><a ext:cls="Ext.Element" ext:member="#hasClass" href="output/Ext.Element.html#hasClass">Element</a></td>
\r
1627 <tr class="method-row inherited expandable">
\r
1628 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1630 <a id="Ext.Layer-hide"></a>
\r
1631 <b>hide</b>( <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
1632 <div class="short">Hide this element - Uses display mode to determine whether to use "display" or "visibility". See <a ext:cls="Ext.Element" ext:member="setVisible" href="output/Ext.Element.html#setVisible">setVisible</a>.</div>
\r
1633 <div class="long">
\r
1634 Hide this element - Uses display mode to determine whether to use "display" or "visibility". See <a ext:cls="Ext.Element" ext:member="setVisible" href="output/Ext.Element.html#setVisible">setVisible</a>. <div class="mdetail-params">
\r
1635 <strong>Parameters:</strong>
\r
1636 <ul><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>
\r
1637 <strong>Returns:</strong>
\r
1639 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
1645 <td class="msource"><a ext:cls="Ext.Element" ext:member="#hide" href="output/Ext.Element.html#hide">Element</a></td>
\r
1647 <tr class="method-row inherited alt expandable">
\r
1648 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1650 <a id="Ext.Layer-hover"></a>
\r
1651 <b>hover</b>( <code>Function overFn</code>, <code>Function outFn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.Element <div class="mdesc">
\r
1652 <div class="short">Sets up event handlers to call the passed functions when the mouse is over this element. Automatically
1653 filters child ...</div>
\r
1654 <div class="long">
\r
1655 Sets up event handlers to call the passed functions when the mouse is over this element. Automatically
1656 filters child element mouse events. <div class="mdetail-params">
\r
1657 <strong>Parameters:</strong>
\r
1658 <ul><li><code>overFn</code> : Function<div class="sub-desc"></div></li><li><code>outFn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
\r
1659 <strong>Returns:</strong>
\r
1661 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
1667 <td class="msource"><a ext:cls="Ext.Element" ext:member="#hover" href="output/Ext.Element.html#hover">Element</a></td>
\r
1669 <tr class="method-row inherited expandable">
\r
1670 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1672 <a id="Ext.Layer-initDD"></a>
\r
1673 <b>initDD</b>( <code>String group</code>, <code>Object config</code>, <code>Object overrides</code> ) : Ext.dd.DD <div class="mdesc">
\r
1674 <div class="short">Initializes a <a ext:cls="Ext.dd.DD" href="output/Ext.dd.DD.html">Ext.dd.DD</a> drag drop object for this element.</div>
\r
1675 <div class="long">
\r
1676 Initializes a <a ext:cls="Ext.dd.DD" href="output/Ext.dd.DD.html">Ext.dd.DD</a> drag drop object for this element. <div class="mdetail-params">
\r
1677 <strong>Parameters:</strong>
\r
1678 <ul><li><code>group</code> : String<div class="sub-desc">The group the DD object is member of</div></li><li><code>config</code> : Object<div class="sub-desc">The DD config object</div></li><li><code>overrides</code> : Object<div class="sub-desc">An object containing methods to override/implement on the DD object</div></li> </ul>
\r
1679 <strong>Returns:</strong>
\r
1681 <li><code>Ext.dd.DD</code><div class="sub-desc">The DD object</div></li>
\r
1687 <td class="msource"><a ext:cls="Ext.Element" ext:member="#initDD" href="output/Ext.Element.html#initDD">Element</a></td>
\r
1689 <tr class="method-row inherited alt expandable">
\r
1690 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1692 <a id="Ext.Layer-initDDProxy"></a>
\r
1693 <b>initDDProxy</b>( <code>String group</code>, <code>Object config</code>, <code>Object overrides</code> ) : Ext.dd.DDProxy <div class="mdesc">
\r
1694 <div class="short">Initializes a <a ext:cls="Ext.dd.DDProxy" href="output/Ext.dd.DDProxy.html">Ext.dd.DDProxy</a> object for this element.</div>
\r
1695 <div class="long">
\r
1696 Initializes a <a ext:cls="Ext.dd.DDProxy" href="output/Ext.dd.DDProxy.html">Ext.dd.DDProxy</a> object for this element. <div class="mdetail-params">
\r
1697 <strong>Parameters:</strong>
\r
1698 <ul><li><code>group</code> : String<div class="sub-desc">The group the DDProxy object is member of</div></li><li><code>config</code> : Object<div class="sub-desc">The DDProxy config object</div></li><li><code>overrides</code> : Object<div class="sub-desc">An object containing methods to override/implement on the DDProxy object</div></li> </ul>
\r
1699 <strong>Returns:</strong>
\r
1701 <li><code>Ext.dd.DDProxy</code><div class="sub-desc">The DDProxy object</div></li>
\r
1707 <td class="msource"><a ext:cls="Ext.Element" ext:member="#initDDProxy" href="output/Ext.Element.html#initDDProxy">Element</a></td>
\r
1709 <tr class="method-row inherited expandable">
\r
1710 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1712 <a id="Ext.Layer-initDDTarget"></a>
\r
1713 <b>initDDTarget</b>( <code>String group</code>, <code>Object config</code>, <code>Object overrides</code> ) : Ext.dd.DDTarget <div class="mdesc">
\r
1714 <div class="short">Initializes a <a ext:cls="Ext.dd.DDTarget" href="output/Ext.dd.DDTarget.html">Ext.dd.DDTarget</a> object for this element.</div>
\r
1715 <div class="long">
\r
1716 Initializes a <a ext:cls="Ext.dd.DDTarget" href="output/Ext.dd.DDTarget.html">Ext.dd.DDTarget</a> object for this element. <div class="mdetail-params">
\r
1717 <strong>Parameters:</strong>
\r
1718 <ul><li><code>group</code> : String<div class="sub-desc">The group the DDTarget object is member of</div></li><li><code>config</code> : Object<div class="sub-desc">The DDTarget config object</div></li><li><code>overrides</code> : Object<div class="sub-desc">An object containing methods to override/implement on the DDTarget object</div></li> </ul>
\r
1719 <strong>Returns:</strong>
\r
1721 <li><code>Ext.dd.DDTarget</code><div class="sub-desc">The DDTarget object</div></li>
\r
1727 <td class="msource"><a ext:cls="Ext.Element" ext:member="#initDDTarget" href="output/Ext.Element.html#initDDTarget">Element</a></td>
\r
1729 <tr class="method-row inherited alt expandable">
\r
1730 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1732 <a id="Ext.Layer-insertAfter"></a>
\r
1733 <b>insertAfter</b>( <code>Mixed el</code> ) : Ext.Element <div class="mdesc">
\r
1734 <div class="short">Inserts this element after the passed element in the DOM</div>
\r
1735 <div class="long">
\r
1736 Inserts this element after the passed element in the DOM <div class="mdetail-params">
\r
1737 <strong>Parameters:</strong>
\r
1738 <ul><li><code>el</code> : Mixed<div class="sub-desc">The element to insert after</div></li> </ul>
\r
1739 <strong>Returns:</strong>
\r
1741 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
1747 <td class="msource"><a ext:cls="Ext.Element" ext:member="#insertAfter" href="output/Ext.Element.html#insertAfter">Element</a></td>
\r
1749 <tr class="method-row inherited expandable">
\r
1750 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1752 <a id="Ext.Layer-insertBefore"></a>
\r
1753 <b>insertBefore</b>( <code>Mixed el</code> ) : Ext.Element <div class="mdesc">
\r
1754 <div class="short">Inserts this element before the passed element in the DOM</div>
\r
1755 <div class="long">
\r
1756 Inserts this element before the passed element in the DOM <div class="mdetail-params">
\r
1757 <strong>Parameters:</strong>
\r
1758 <ul><li><code>el</code> : Mixed<div class="sub-desc">The element before which this element will be inserted</div></li> </ul>
\r
1759 <strong>Returns:</strong>
\r
1761 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
1767 <td class="msource"><a ext:cls="Ext.Element" ext:member="#insertBefore" href="output/Ext.Element.html#insertBefore">Element</a></td>
\r
1769 <tr class="method-row inherited alt expandable">
\r
1770 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1772 <a id="Ext.Layer-insertFirst"></a>
\r
1773 <b>insertFirst</b>( <code>Mixed/Object el</code> ) : Ext.Element <div class="mdesc">
\r
1774 <div class="short">Inserts (or creates) an element (or DomHelper config) as the first child of this element</div>
\r
1775 <div class="long">
\r
1776 Inserts (or creates) an element (or DomHelper config) as the first child of this element <div class="mdetail-params">
\r
1777 <strong>Parameters:</strong>
\r
1778 <ul><li><code>el</code> : Mixed/Object<div class="sub-desc">The id or element to insert or a DomHelper config to create and insert</div></li> </ul>
\r
1779 <strong>Returns:</strong>
\r
1781 <li><code>Ext.Element</code><div class="sub-desc">The new child</div></li>
\r
1787 <td class="msource"><a ext:cls="Ext.Element" ext:member="#insertFirst" href="output/Ext.Element.html#insertFirst">Element</a></td>
\r
1789 <tr class="method-row inherited expandable">
\r
1790 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1792 <a id="Ext.Layer-insertHtml"></a>
\r
1793 <b>insertHtml</b>( <code>String where</code>, <code>String html</code>, <span class="optional" title="Optional">[<code>Boolean returnEl</code>]</span> ) : HTMLElement/Ext.Element <div class="mdesc">
\r
1794 <div class="short">Inserts an html fragment into this element</div>
\r
1795 <div class="long">
\r
1796 Inserts an html fragment into this element <div class="mdetail-params">
\r
1797 <strong>Parameters:</strong>
\r
1798 <ul><li><code>where</code> : String<div class="sub-desc">Where to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.</div></li><li><code>html</code> : String<div class="sub-desc">The HTML fragment</div></li><li><code>returnEl</code> : Boolean<div class="sub-desc">(optional) True to return an Ext.Element (defaults to false)</div></li> </ul>
\r
1799 <strong>Returns:</strong>
\r
1801 <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The inserted node (or nearest related if more than 1 inserted)</div></li>
\r
1807 <td class="msource"><a ext:cls="Ext.Element" ext:member="#insertHtml" href="output/Ext.Element.html#insertHtml">Element</a></td>
\r
1809 <tr class="method-row inherited alt expandable">
\r
1810 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1812 <a id="Ext.Layer-insertSibling"></a>
\r
1813 <b>insertSibling</b>( <code>Mixed/Object/Array el</code>, <span class="optional" title="Optional">[<code>String where</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element <div class="mdesc">
\r
1814 <div class="short">Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element</div>
\r
1815 <div class="long">
\r
1816 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element <div class="mdetail-params">
\r
1817 <strong>Parameters:</strong>
\r
1818 <ul><li><code>el</code> : Mixed/Object/Array<div class="sub-desc">The id, element to insert or a DomHelper config to create and insert *or* an array of any of those.</div></li><li><code>where</code> : String<div class="sub-desc">(optional) 'before' or 'after' defaults to before</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return the raw DOM element instead of Ext.Element</div></li> </ul>
\r
1819 <strong>Returns:</strong>
\r
1821 <li><code>Ext.Element</code><div class="sub-desc">the inserted Element</div></li>
\r
1827 <td class="msource"><a ext:cls="Ext.Element" ext:member="#insertSibling" href="output/Ext.Element.html#insertSibling">Element</a></td>
\r
1829 <tr class="method-row inherited expandable">
\r
1830 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1832 <a id="Ext.Layer-is"></a>
\r
1833 <b>is</b>( <code>String selector</code> ) : Boolean <div class="mdesc">
\r
1834 <div class="short">Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)</div>
\r
1835 <div class="long">
\r
1836 Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) <div class="mdetail-params">
\r
1837 <strong>Parameters:</strong>
\r
1838 <ul><li><code>selector</code> : String<div class="sub-desc">The simple selector to test</div></li> </ul>
\r
1839 <strong>Returns:</strong>
\r
1841 <li><code>Boolean</code><div class="sub-desc">True if this element matches the selector, else false</div></li>
\r
1847 <td class="msource"><a ext:cls="Ext.Element" ext:member="#is" href="output/Ext.Element.html#is">Element</a></td>
\r
1849 <tr class="method-row inherited alt expandable">
\r
1850 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1852 <a id="Ext.Layer-isBorderBox"></a>
\r
1853 <b>isBorderBox</b>() : Boolean <div class="mdesc">
\r
1854 <div class="short">Tests various css rules/browsers to determine if this element uses a border box</div>
\r
1855 <div class="long">
\r
1856 Tests various css rules/browsers to determine if this element uses a border box <div class="mdetail-params">
\r
1857 <strong>Parameters:</strong>
\r
1858 <ul><li>None.</li> </ul>
\r
1859 <strong>Returns:</strong>
\r
1861 <li><code>Boolean</code></li>
\r
1867 <td class="msource"><a ext:cls="Ext.Element" ext:member="#isBorderBox" href="output/Ext.Element.html#isBorderBox">Element</a></td>
\r
1869 <tr class="method-row inherited expandable">
\r
1870 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1872 <a id="Ext.Layer-isDisplayed"></a>
\r
1873 <b>isDisplayed</b>() : Boolean <div class="mdesc">
\r
1874 <div class="short">Returns true if display is not "none"</div>
\r
1875 <div class="long">
\r
1876 Returns true if display is not "none" <div class="mdetail-params">
\r
1877 <strong>Parameters:</strong>
\r
1878 <ul><li>None.</li> </ul>
\r
1879 <strong>Returns:</strong>
\r
1881 <li><code>Boolean</code></li>
\r
1887 <td class="msource"><a ext:cls="Ext.Element" ext:member="#isDisplayed" href="output/Ext.Element.html#isDisplayed">Element</a></td>
\r
1889 <tr class="method-row inherited alt expandable">
\r
1890 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1892 <a id="Ext.Layer-isMasked"></a>
\r
1893 <b>isMasked</b>() : Boolean <div class="mdesc">
\r
1894 <div class="short">Returns true if this element is masked</div>
\r
1895 <div class="long">
\r
1896 Returns true if this element is masked <div class="mdetail-params">
\r
1897 <strong>Parameters:</strong>
\r
1898 <ul><li>None.</li> </ul>
\r
1899 <strong>Returns:</strong>
\r
1901 <li><code>Boolean</code></li>
\r
1907 <td class="msource"><a ext:cls="Ext.Element" ext:member="#isMasked" href="output/Ext.Element.html#isMasked">Element</a></td>
\r
1909 <tr class="method-row inherited expandable">
\r
1910 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1912 <a id="Ext.Layer-isScrollable"></a>
\r
1913 <b>isScrollable</b>() : Boolean <div class="mdesc">
\r
1914 <div class="short">Returns true if this element is scrollable.</div>
\r
1915 <div class="long">
\r
1916 Returns true if this element is scrollable. <div class="mdetail-params">
\r
1917 <strong>Parameters:</strong>
\r
1918 <ul><li>None.</li> </ul>
\r
1919 <strong>Returns:</strong>
\r
1921 <li><code>Boolean</code></li>
\r
1927 <td class="msource"><a ext:cls="Ext.Element" ext:member="#isScrollable" href="output/Ext.Element.html#isScrollable">Element</a></td>
\r
1929 <tr class="method-row inherited alt expandable">
\r
1930 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1932 <a id="Ext.Layer-isVisible"></a>
\r
1933 <b>isVisible</b>( <span class="optional" title="Optional">[<code>Boolean deep</code>]</span> ) : Boolean <div class="mdesc">
\r
1934 <div class="short">Checks whether the element is currently visible using both visibility and display properties.</div>
\r
1935 <div class="long">
\r
1936 Checks whether the element is currently visible using both visibility and display properties. <div class="mdetail-params">
\r
1937 <strong>Parameters:</strong>
\r
1938 <ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) True to walk the dom and see if parent elements are hidden (defaults to false)</div></li> </ul>
\r
1939 <strong>Returns:</strong>
\r
1941 <li><code>Boolean</code><div class="sub-desc">True if the element is currently visible, else false</div></li>
\r
1947 <td class="msource"><a ext:cls="Ext.Element" ext:member="#isVisible" href="output/Ext.Element.html#isVisible">Element</a></td>
\r
1949 <tr class="method-row inherited expandable">
\r
1950 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1952 <a id="Ext.Layer-last"></a>
\r
1953 <b>last</b>( <span class="optional" title="Optional">[<code>String selector</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element/HTMLElement <div class="mdesc">
\r
1954 <div class="short">Gets the last child, skipping text nodes</div>
\r
1955 <div class="long">
\r
1956 Gets the last child, skipping text nodes <div class="mdetail-params">
\r
1957 <strong>Parameters:</strong>
\r
1958 <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>
\r
1959 <strong>Returns:</strong>
\r
1961 <li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The last child or null</div></li>
\r
1967 <td class="msource"><a ext:cls="Ext.Element" ext:member="#last" href="output/Ext.Element.html#last">Element</a></td>
\r
1969 <tr class="method-row inherited alt expandable">
\r
1970 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1972 <a id="Ext.Layer-load"></a>
\r
1973 <b>load</b>() : Ext.Element <div class="mdesc">
\r
1974 <div class="short">Direct access to the Updater <a ext:cls="Ext.Updater" ext:member="update" href="output/Ext.Updater.html#update">Ext.Updater.update</a> method. The method takes the same object
1975 parameter as <a ext:cls="Ext.Updater" ext:member="update" href="output/Ext.Updater.html#update">Ext.Updater.update</a></div>
\r
1976 <div class="long">
\r
1977 Direct access to the Updater <a ext:cls="Ext.Updater" ext:member="update" href="output/Ext.Updater.html#update">Ext.Updater.update</a> method. The method takes the same object
1978 parameter as <a ext:cls="Ext.Updater" ext:member="update" href="output/Ext.Updater.html#update">Ext.Updater.update</a> <div class="mdetail-params">
\r
1979 <strong>Parameters:</strong>
\r
1980 <ul><li>None.</li> </ul>
\r
1981 <strong>Returns:</strong>
\r
1983 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
1989 <td class="msource"><a ext:cls="Ext.Element" ext:member="#load" href="output/Ext.Element.html#load">Element</a></td>
\r
1991 <tr class="method-row inherited expandable">
\r
1992 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1994 <a id="Ext.Layer-mask"></a>
\r
1995 <b>mask</b>( <span class="optional" title="Optional">[<code>String msg</code>]</span>, <span class="optional" title="Optional">[<code>String msgCls</code>]</span> ) : Element <div class="mdesc">
\r
1996 <div class="short">Puts a mask over this element to disable user interaction. Requires core.css.
1997 This method can only be applied to elem...</div>
\r
1998 <div class="long">
\r
1999 Puts a mask over this element to disable user interaction. Requires core.css.
2000 This method can only be applied to elements which accept child nodes. <div class="mdetail-params">
\r
2001 <strong>Parameters:</strong>
\r
2002 <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>
\r
2003 <strong>Returns:</strong>
\r
2005 <li><code>Element</code><div class="sub-desc">The mask element</div></li>
\r
2011 <td class="msource"><a ext:cls="Ext.Element" ext:member="#mask" href="output/Ext.Element.html#mask">Element</a></td>
\r
2013 <tr class="method-row inherited alt expandable">
\r
2014 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2016 <a id="Ext.Layer-move"></a>
\r
2017 <b>move</b>( <code>String direction</code>, <code>Number distance</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2018 <div class="short">Move this element relative to its current position.</div>
\r
2019 <div class="long">
\r
2020 Move this element relative to its current position. <div class="mdetail-params">
\r
2021 <strong>Parameters:</strong>
\r
2022 <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>
\r
2023 <strong>Returns:</strong>
\r
2025 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2031 <td class="msource"><a ext:cls="Ext.Element" ext:member="#move" href="output/Ext.Element.html#move">Element</a></td>
\r
2033 <tr class="method-row inherited expandable">
\r
2034 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2036 <a id="Ext.Layer-moveTo"></a>
\r
2037 <b>moveTo</b>( <code>Number x</code>, <code>Number y</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2038 <div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
2039 The element must b...</div>
\r
2040 <div class="long">
\r
2041 Sets the position of the element in page coordinates, regardless of how the element is positioned.
2042 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">
\r
2043 <strong>Parameters:</strong>
\r
2044 <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>
\r
2045 <strong>Returns:</strong>
\r
2047 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2053 <td class="msource"><a ext:cls="Ext.Element" ext:member="#moveTo" href="output/Ext.Element.html#moveTo">Element</a></td>
\r
2055 <tr class="method-row inherited alt expandable">
\r
2056 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2058 <a id="Ext.Layer-next"></a>
\r
2059 <b>next</b>( <span class="optional" title="Optional">[<code>String selector</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element/HTMLElement <div class="mdesc">
\r
2060 <div class="short">Gets the next sibling, skipping text nodes</div>
\r
2061 <div class="long">
\r
2062 Gets the next sibling, skipping text nodes <div class="mdetail-params">
\r
2063 <strong>Parameters:</strong>
\r
2064 <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>
\r
2065 <strong>Returns:</strong>
\r
2067 <li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The next sibling or null</div></li>
\r
2073 <td class="msource"><a ext:cls="Ext.Element" ext:member="#next" href="output/Ext.Element.html#next">Element</a></td>
\r
2075 <tr class="method-row inherited expandable">
\r
2076 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2078 <a id="Ext.Layer-on"></a>
\r
2079 <b>on</b>( <code>String eventName</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
2080 <div class="short">Appends an event handler (shorthand for <a ext:cls="Ext.Element" ext:member="addListener" href="output/Ext.Element.html#addListener">addListener</a>).</div>
\r
2081 <div class="long">
\r
2082 Appends an event handler (shorthand for <a ext:cls="Ext.Element" ext:member="addListener" href="output/Ext.Element.html#addListener">addListener</a>). <div class="mdetail-params">
\r
2083 <strong>Parameters:</strong>
\r
2084 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to handle</div></li><li><code>fn</code> : Function<div class="sub-desc">The handler function the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this element) of the handler function</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing standard <a ext:cls="Ext.Element" ext:member="addListener" href="output/Ext.Element.html#addListener">addListener</a> options</div></li> </ul>
\r
2085 <strong>Returns:</strong>
\r
2087 <li><code>void</code></li>
\r
2093 <td class="msource"><a ext:cls="Ext.Element" ext:member="#on" href="output/Ext.Element.html#on">Element</a></td>
\r
2095 <tr class="method-row inherited alt expandable">
\r
2096 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2098 <a id="Ext.Layer-parent"></a>
\r
2099 <b>parent</b>( <span class="optional" title="Optional">[<code>String selector</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element/HTMLElement <div class="mdesc">
\r
2100 <div class="short">Gets the parent node for this element, optionally chaining up trying to match a selector</div>
\r
2101 <div class="long">
\r
2102 Gets the parent node for this element, optionally chaining up trying to match a selector <div class="mdetail-params">
\r
2103 <strong>Parameters:</strong>
\r
2104 <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>
\r
2105 <strong>Returns:</strong>
\r
2107 <li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The parent node or null</div></li>
\r
2113 <td class="msource"><a ext:cls="Ext.Element" ext:member="#parent" href="output/Ext.Element.html#parent">Element</a></td>
\r
2115 <tr class="method-row inherited expandable">
\r
2116 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2118 <a id="Ext.Layer-position"></a>
\r
2119 <b>position</b>( <span class="optional" title="Optional">[<code>String pos</code>]</span>, <span class="optional" title="Optional">[<code>Number zIndex</code>]</span>, <span class="optional" title="Optional">[<code>Number x</code>]</span>, <span class="optional" title="Optional">[<code>Number y</code>]</span> ) : void <div class="mdesc">
\r
2120 <div class="short">Initializes positioning on this element. If a desired position is not passed, it will make the
2121 the element positioned...</div>
\r
2122 <div class="long">
\r
2123 Initializes positioning on this element. If a desired position is not passed, it will make the
2124 the element positioned relative IF it is not already positioned. <div class="mdetail-params">
\r
2125 <strong>Parameters:</strong>
\r
2126 <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>
\r
2127 <strong>Returns:</strong>
\r
2129 <li><code>void</code></li>
\r
2135 <td class="msource"><a ext:cls="Ext.Element" ext:member="#position" href="output/Ext.Element.html#position">Element</a></td>
\r
2137 <tr class="method-row inherited alt expandable">
\r
2138 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2140 <a id="Ext.Layer-prev"></a>
\r
2141 <b>prev</b>( <span class="optional" title="Optional">[<code>String selector</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : Ext.Element/HTMLElement <div class="mdesc">
\r
2142 <div class="short">Gets the previous sibling, skipping text nodes</div>
\r
2143 <div class="long">
\r
2144 Gets the previous sibling, skipping text nodes <div class="mdetail-params">
\r
2145 <strong>Parameters:</strong>
\r
2146 <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>
\r
2147 <strong>Returns:</strong>
\r
2149 <li><code>Ext.Element/HTMLElement</code><div class="sub-desc">The previous sibling or null</div></li>
\r
2155 <td class="msource"><a ext:cls="Ext.Element" ext:member="#prev" href="output/Ext.Element.html#prev">Element</a></td>
\r
2157 <tr class="method-row inherited expandable">
\r
2158 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2160 <a id="Ext.Layer-query"></a>
\r
2161 <b>query</b>( <code>String selector</code> ) : Array <div class="mdesc">
\r
2162 <div class="short">Selects child nodes based on the passed CSS selector (the selector should not contain an id).</div>
\r
2163 <div class="long">
\r
2164 Selects child nodes based on the passed CSS selector (the selector should not contain an id). <div class="mdetail-params">
\r
2165 <strong>Parameters:</strong>
\r
2166 <ul><li><code>selector</code> : String<div class="sub-desc">The CSS selector</div></li> </ul>
\r
2167 <strong>Returns:</strong>
\r
2169 <li><code>Array</code><div class="sub-desc">An array of the matched nodes</div></li>
\r
2175 <td class="msource"><a ext:cls="Ext.Element" ext:member="#query" href="output/Ext.Element.html#query">Element</a></td>
\r
2177 <tr class="method-row inherited alt expandable">
\r
2178 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2180 <a id="Ext.Layer-radioClass"></a>
\r
2181 <b>radioClass</b>( <code>String/Array className</code> ) : Ext.Element <div class="mdesc">
\r
2182 <div class="short">Adds one or more CSS classes to this element and removes the same class(es) from all siblings.</div>
\r
2183 <div class="long">
\r
2184 Adds one or more CSS classes to this element and removes the same class(es) from all siblings. <div class="mdetail-params">
\r
2185 <strong>Parameters:</strong>
\r
2186 <ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to add, or an array of classes</div></li> </ul>
\r
2187 <strong>Returns:</strong>
\r
2189 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2195 <td class="msource"><a ext:cls="Ext.Element" ext:member="#radioClass" href="output/Ext.Element.html#radioClass">Element</a></td>
\r
2197 <tr class="method-row inherited expandable">
\r
2198 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2200 <a id="Ext.Layer-relayEvent"></a>
\r
2201 <b>relayEvent</b>( <code>String eventName</code>, <code>Object object</code> ) : void <div class="mdesc">
\r
2202 <div class="short">Create an event handler on this element such that when the event fires and is handled by this element,
2203 it will be rel...</div>
\r
2204 <div class="long">
\r
2205 Create an event handler on this element such that when the event fires and is handled by this element,
2206 it will be relayed to another object (i.e., fired again as if it originated from that object instead). <div class="mdetail-params">
\r
2207 <strong>Parameters:</strong>
\r
2208 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to relay</div></li><li><code>object</code> : Object<div class="sub-desc">Any object that extends <a ext:cls="Ext.util.Observable" href="output/Ext.util.Observable.html">Ext.util.Observable</a> that will provide the context
2209 for firing the relayed event</div></li> </ul>
\r
2210 <strong>Returns:</strong>
\r
2212 <li><code>void</code></li>
\r
2218 <td class="msource"><a ext:cls="Ext.Element" ext:member="#relayEvent" href="output/Ext.Element.html#relayEvent">Element</a></td>
\r
2220 <tr class="method-row inherited alt expandable">
\r
2221 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2223 <a id="Ext.Layer-remove"></a>
\r
2224 <b>remove</b>() : void <div class="mdesc">
\r
2225 <div class="short">Removes this element from the DOM and deletes it from the cache</div>
\r
2226 <div class="long">
\r
2227 Removes this element from the DOM and deletes it from the cache <div class="mdetail-params">
\r
2228 <strong>Parameters:</strong>
\r
2229 <ul><li>None.</li> </ul>
\r
2230 <strong>Returns:</strong>
\r
2232 <li><code>void</code></li>
\r
2238 <td class="msource"><a ext:cls="Ext.Element" ext:member="#remove" href="output/Ext.Element.html#remove">Element</a></td>
\r
2240 <tr class="method-row inherited expandable">
\r
2241 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2243 <a id="Ext.Layer-removeAllListeners"></a>
\r
2244 <b>removeAllListeners</b>() : Ext.Element <div class="mdesc">
\r
2245 <div class="short">Removes all previous added listeners from this element</div>
\r
2246 <div class="long">
\r
2247 Removes all previous added listeners from this element <div class="mdetail-params">
\r
2248 <strong>Parameters:</strong>
\r
2249 <ul><li>None.</li> </ul>
\r
2250 <strong>Returns:</strong>
\r
2252 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2258 <td class="msource"><a ext:cls="Ext.Element" ext:member="#removeAllListeners" href="output/Ext.Element.html#removeAllListeners">Element</a></td>
\r
2260 <tr class="method-row inherited alt expandable">
\r
2261 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2263 <a id="Ext.Layer-removeClass"></a>
\r
2264 <b>removeClass</b>( <code>String/Array className</code> ) : Ext.Element <div class="mdesc">
\r
2265 <div class="short">Removes one or more CSS classes from the element.</div>
\r
2266 <div class="long">
\r
2267 Removes one or more CSS classes from the element. <div class="mdetail-params">
\r
2268 <strong>Parameters:</strong>
\r
2269 <ul><li><code>className</code> : String/Array<div class="sub-desc">The CSS class to remove, or an array of classes</div></li> </ul>
\r
2270 <strong>Returns:</strong>
\r
2272 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2278 <td class="msource"><a ext:cls="Ext.Element" ext:member="#removeClass" href="output/Ext.Element.html#removeClass">Element</a></td>
\r
2280 <tr class="method-row inherited expandable">
\r
2281 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2283 <a id="Ext.Layer-removeListener"></a>
\r
2284 <b>removeListener</b>( <code>String eventName</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2285 <div class="short">Removes an event handler from this element. The shorthand version un is equivalent. Example:
2286 el.removeListener('cli...</div>
\r
2287 <div class="long">
\r
2288 Removes an event handler from this element. The shorthand version <a ext:cls="Ext.Element" ext:member="un" href="output/Ext.Element.html#un">un</a> is equivalent. Example:
2289 <pre><code>el.removeListener(<em>'click'</em>, <b>this</b>.handlerFn);
2291 el.un(<em>'click'</em>, <b>this</b>.handlerFn);</code></pre> <div class="mdetail-params">
\r
2292 <strong>Parameters:</strong>
\r
2293 <ul><li><code>eventName</code> : String<div class="sub-desc">the type of event to remove</div></li><li><code>fn</code> : Function<div class="sub-desc">the method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (The <tt>this</tt> reference) of the handler function. Defaults
2294 to this Element.</div></li> </ul>
\r
2295 <strong>Returns:</strong>
\r
2297 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2303 <td class="msource"><a ext:cls="Ext.Element" ext:member="#removeListener" href="output/Ext.Element.html#removeListener">Element</a></td>
\r
2305 <tr class="method-row inherited alt expandable">
\r
2306 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2308 <a id="Ext.Layer-repaint"></a>
\r
2309 <b>repaint</b>() : Ext.Element <div class="mdesc">
\r
2310 <div class="short">Forces the browser to repaint this element</div>
\r
2311 <div class="long">
\r
2312 Forces the browser to repaint this element <div class="mdetail-params">
\r
2313 <strong>Parameters:</strong>
\r
2314 <ul><li>None.</li> </ul>
\r
2315 <strong>Returns:</strong>
\r
2317 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2323 <td class="msource"><a ext:cls="Ext.Element" ext:member="#repaint" href="output/Ext.Element.html#repaint">Element</a></td>
\r
2325 <tr class="method-row inherited expandable">
\r
2326 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2328 <a id="Ext.Layer-replace"></a>
\r
2329 <b>replace</b>( <code>Mixed el</code> ) : Ext.Element <div class="mdesc">
\r
2330 <div class="short">Replaces the passed element with this element</div>
\r
2331 <div class="long">
\r
2332 Replaces the passed element with this element <div class="mdetail-params">
\r
2333 <strong>Parameters:</strong>
\r
2334 <ul><li><code>el</code> : Mixed<div class="sub-desc">The element to replace</div></li> </ul>
\r
2335 <strong>Returns:</strong>
\r
2337 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2343 <td class="msource"><a ext:cls="Ext.Element" ext:member="#replace" href="output/Ext.Element.html#replace">Element</a></td>
\r
2345 <tr class="method-row inherited alt expandable">
\r
2346 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2348 <a id="Ext.Layer-replaceClass"></a>
\r
2349 <b>replaceClass</b>( <code>String oldClassName</code>, <code>String newClassName</code> ) : Ext.Element <div class="mdesc">
\r
2350 <div class="short">Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.</div>
\r
2351 <div class="long">
\r
2352 Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. <div class="mdetail-params">
\r
2353 <strong>Parameters:</strong>
\r
2354 <ul><li><code>oldClassName</code> : String<div class="sub-desc">The CSS class to replace</div></li><li><code>newClassName</code> : String<div class="sub-desc">The replacement CSS class</div></li> </ul>
\r
2355 <strong>Returns:</strong>
\r
2357 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2363 <td class="msource"><a ext:cls="Ext.Element" ext:member="#replaceClass" href="output/Ext.Element.html#replaceClass">Element</a></td>
\r
2365 <tr class="method-row inherited expandable">
\r
2366 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2368 <a id="Ext.Layer-replaceWith"></a>
\r
2369 <b>replaceWith</b>( <code>Mixed/Object el</code> ) : Ext.Element <div class="mdesc">
\r
2370 <div class="short">Replaces this element with the passed element</div>
\r
2371 <div class="long">
\r
2372 Replaces this element with the passed element <div class="mdetail-params">
\r
2373 <strong>Parameters:</strong>
\r
2374 <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>
\r
2375 <strong>Returns:</strong>
\r
2377 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2383 <td class="msource"><a ext:cls="Ext.Element" ext:member="#replaceWith" href="output/Ext.Element.html#replaceWith">Element</a></td>
\r
2385 <tr class="method-row inherited alt expandable">
\r
2386 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2388 <a id="Ext.Layer-scroll"></a>
\r
2389 <b>scroll</b>( <code>String direction</code>, <code>Number distance</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Boolean <div class="mdesc">
\r
2390 <div class="short">Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
2391 within this element's s...</div>
\r
2392 <div class="long">
\r
2393 Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
2394 within this element's scrollable range. <div class="mdetail-params">
\r
2395 <strong>Parameters:</strong>
\r
2396 <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>
\r
2397 <strong>Returns:</strong>
\r
2399 <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>
\r
2405 <td class="msource"><a ext:cls="Ext.Element" ext:member="#scroll" href="output/Ext.Element.html#scroll">Element</a></td>
\r
2407 <tr class="method-row inherited expandable">
\r
2408 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2410 <a id="Ext.Layer-scrollIntoView"></a>
\r
2411 <b>scrollIntoView</b>( <span class="optional" title="Optional">[<code>Mixed container</code>]</span>, <span class="optional" title="Optional">[<code>Boolean hscroll</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2412 <div class="short">Scrolls this element into view within the passed container.</div>
\r
2413 <div class="long">
\r
2414 Scrolls this element into view within the passed container. <div class="mdetail-params">
\r
2415 <strong>Parameters:</strong>
\r
2416 <ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The container element to scroll (defaults to document.body). Should be a
2417 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>
\r
2418 <strong>Returns:</strong>
\r
2420 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2426 <td class="msource"><a ext:cls="Ext.Element" ext:member="#scrollIntoView" href="output/Ext.Element.html#scrollIntoView">Element</a></td>
\r
2428 <tr class="method-row inherited alt expandable">
\r
2429 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2431 <a id="Ext.Layer-scrollTo"></a>
\r
2432 <b>scrollTo</b>( <code>String side</code>, <code>Number value</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Element <div class="mdesc">
\r
2433 <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>
\r
2434 <div class="long">
\r
2435 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">
\r
2436 <strong>Parameters:</strong>
\r
2437 <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>
\r
2438 <strong>Returns:</strong>
\r
2440 <li><code>Element</code><div class="sub-desc">this</div></li>
\r
2446 <td class="msource"><a ext:cls="Ext.Element" ext:member="#scrollTo" href="output/Ext.Element.html#scrollTo">Element</a></td>
\r
2448 <tr class="method-row inherited expandable">
\r
2449 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2451 <a id="Ext.Layer-select"></a>
\r
2452 <b>select</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Boolean unique</code>]</span> ) : CompositeElement/CompositeElementLite <div class="mdesc">
\r
2453 <div class="short">Creates a <a ext:cls="Ext.CompositeElement" href="output/Ext.CompositeElement.html">Ext.CompositeElement</a> for child nodes based on the passed CSS selector (the selector should not contain an id).</div>
\r
2454 <div class="long">
\r
2455 Creates a <a ext:cls="Ext.CompositeElement" href="output/Ext.CompositeElement.html">Ext.CompositeElement</a> for child nodes based on the passed CSS selector (the selector should not contain an id). <div class="mdetail-params">
\r
2456 <strong>Parameters:</strong>
\r
2457 <ul><li><code>selector</code> : String<div class="sub-desc">The CSS selector</div></li><li><code>unique</code> : Boolean<div class="sub-desc">(optional) True to create a unique Ext.Element for each child (defaults to false, which creates a single shared flyweight object)</div></li> </ul>
\r
2458 <strong>Returns:</strong>
\r
2460 <li><code>CompositeElement/CompositeElementLite</code><div class="sub-desc">The composite element</div></li>
\r
2466 <td class="msource"><a ext:cls="Ext.Element" ext:member="#select" href="output/Ext.Element.html#select">Element</a></td>
\r
2468 <tr class="method-row inherited alt expandable">
\r
2469 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2471 <a id="Ext.Layer-set"></a>
\r
2472 <b>set</b>( <code>Object o</code>, <span class="optional" title="Optional">[<code>Boolean useSet</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2473 <div class="short">Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)</div>
\r
2474 <div class="long">
\r
2475 Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) <div class="mdetail-params">
\r
2476 <strong>Parameters:</strong>
\r
2477 <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>
\r
2478 <strong>Returns:</strong>
\r
2480 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2486 <td class="msource"><a ext:cls="Ext.Element" ext:member="#set" href="output/Ext.Element.html#set">Element</a></td>
\r
2488 <tr class="method-row inherited expandable">
\r
2489 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2491 <a id="Ext.Layer-setBottom"></a>
\r
2492 <b>setBottom</b>( <code>String bottom</code> ) : Ext.Element <div class="mdesc">
\r
2493 <div class="short">Sets the element's CSS bottom style.</div>
\r
2494 <div class="long">
\r
2495 Sets the element's CSS bottom style. <div class="mdetail-params">
\r
2496 <strong>Parameters:</strong>
\r
2497 <ul><li><code>bottom</code> : String<div class="sub-desc">The bottom CSS property value</div></li> </ul>
\r
2498 <strong>Returns:</strong>
\r
2500 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2506 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setBottom" href="output/Ext.Element.html#setBottom">Element</a></td>
\r
2508 <tr class="method-row inherited alt expandable">
\r
2509 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2511 <a id="Ext.Layer-setBounds"></a>
\r
2512 <b>setBounds</b>( <code>Number x</code>, <code>Number y</code>, <code>Number width</code>, <code>Number height</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2513 <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>
\r
2514 <div class="long">
\r
2515 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">
\r
2516 <strong>Parameters:</strong>
\r
2517 <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> : Number<div class="sub-desc">The new width</div></li><li><code>height</code> : Number<div class="sub-desc">The new height</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>
\r
2518 <strong>Returns:</strong>
\r
2520 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2526 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setBounds" href="output/Ext.Element.html#setBounds">Element</a></td>
\r
2528 <tr class="method-row inherited expandable">
\r
2529 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2531 <a id="Ext.Layer-setBox"></a>
\r
2532 <b>setBox</b>( <code>Object box</code>, <span class="optional" title="Optional">[<code>Boolean adjust</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2533 <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>
\r
2534 <div class="long">
\r
2535 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">
\r
2536 <strong>Parameters:</strong>
\r
2537 <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>
\r
2538 <strong>Returns:</strong>
\r
2540 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2546 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setBox" href="output/Ext.Element.html#setBox">Element</a></td>
\r
2548 <tr class="method-row inherited alt expandable">
\r
2549 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2551 <a id="Ext.Layer-setDisplayed"></a>
\r
2552 <b>setDisplayed</b>( <code>Mixed value</code> ) : Ext.Element <div class="mdesc">
\r
2553 <div class="short">Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.</div>
\r
2554 <div class="long">
\r
2555 Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true. <div class="mdetail-params">
\r
2556 <strong>Parameters:</strong>
\r
2557 <ul><li><code>value</code> : Mixed<div class="sub-desc">Boolean value to display the element using its default display, or a string to set the display directly.</div></li> </ul>
\r
2558 <strong>Returns:</strong>
\r
2560 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2566 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setDisplayed" href="output/Ext.Element.html#setDisplayed">Element</a></td>
\r
2568 <tr class="method-row inherited expandable">
\r
2569 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2571 <a id="Ext.Layer-setHeight"></a>
\r
2572 <b>setHeight</b>( <code>Number height</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2573 <div class="short">Set the height of the element</div>
\r
2574 <div class="long">
\r
2575 Set the height of the element <div class="mdetail-params">
\r
2576 <strong>Parameters:</strong>
\r
2577 <ul><li><code>height</code> : Number<div class="sub-desc">The new height</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>
\r
2578 <strong>Returns:</strong>
\r
2580 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2586 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setHeight" href="output/Ext.Element.html#setHeight">Element</a></td>
\r
2588 <tr class="method-row inherited alt expandable">
\r
2589 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2591 <a id="Ext.Layer-setLeft"></a>
\r
2592 <b>setLeft</b>( <code>String left</code> ) : Ext.Element <div class="mdesc">
\r
2593 <div class="short">Sets the element's left position directly using CSS style (instead of <a ext:cls="Ext.Element" ext:member="setX" href="output/Ext.Element.html#setX">setX</a>).</div>
\r
2594 <div class="long">
\r
2595 Sets the element's left position directly using CSS style (instead of <a ext:cls="Ext.Element" ext:member="setX" href="output/Ext.Element.html#setX">setX</a>). <div class="mdetail-params">
\r
2596 <strong>Parameters:</strong>
\r
2597 <ul><li><code>left</code> : String<div class="sub-desc">The left CSS property value</div></li> </ul>
\r
2598 <strong>Returns:</strong>
\r
2600 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2606 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setLeft" href="output/Ext.Element.html#setLeft">Element</a></td>
\r
2608 <tr class="method-row inherited expandable">
\r
2609 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2611 <a id="Ext.Layer-setLeftTop"></a>
\r
2612 <b>setLeftTop</b>( <code>String left</code>, <code>String top</code> ) : Ext.Element <div class="mdesc">
\r
2613 <div class="short">Quick set left and top adding default units</div>
\r
2614 <div class="long">
\r
2615 Quick set left and top adding default units <div class="mdetail-params">
\r
2616 <strong>Parameters:</strong>
\r
2617 <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>
\r
2618 <strong>Returns:</strong>
\r
2620 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2626 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setLeftTop" href="output/Ext.Element.html#setLeftTop">Element</a></td>
\r
2628 <tr class="method-row inherited alt expandable">
\r
2629 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2631 <a id="Ext.Layer-setLocation"></a>
\r
2632 <b>setLocation</b>( <code>Number x</code>, <code>Number y</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2633 <div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
2634 The element must b...</div>
\r
2635 <div class="long">
\r
2636 Sets the position of the element in page coordinates, regardless of how the element is positioned.
2637 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">
\r
2638 <strong>Parameters:</strong>
\r
2639 <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>
\r
2640 <strong>Returns:</strong>
\r
2642 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2648 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setLocation" href="output/Ext.Element.html#setLocation">Element</a></td>
\r
2650 <tr class="method-row inherited expandable">
\r
2651 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2653 <a id="Ext.Layer-setOpacity"></a>
\r
2654 <b>setOpacity</b>( <code>Float opacity</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2655 <div class="short">Set the opacity of the element</div>
\r
2656 <div class="long">
\r
2657 Set the opacity of the element <div class="mdetail-params">
\r
2658 <strong>Parameters:</strong>
\r
2659 <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) true for the default animation or a standard Element animation config object</div></li> </ul>
\r
2660 <strong>Returns:</strong>
\r
2662 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2668 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setOpacity" href="output/Ext.Element.html#setOpacity">Element</a></td>
\r
2670 <tr class="method-row inherited alt expandable">
\r
2671 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2673 <a id="Ext.Layer-setPositioning"></a>
\r
2674 <b>setPositioning</b>( <code>Object posCfg</code> ) : Ext.Element <div class="mdesc">
\r
2675 <div class="short">Set positioning with an object returned by getPositioning().</div>
\r
2676 <div class="long">
\r
2677 Set positioning with an object returned by getPositioning(). <div class="mdetail-params">
\r
2678 <strong>Parameters:</strong>
\r
2679 <ul><li><code>posCfg</code> : Object<div class="sub-desc"></div></li> </ul>
\r
2680 <strong>Returns:</strong>
\r
2682 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2688 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setPositioning" href="output/Ext.Element.html#setPositioning">Element</a></td>
\r
2690 <tr class="method-row inherited expandable">
\r
2691 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2693 <a id="Ext.Layer-setRegion"></a>
\r
2694 <b>setRegion</b>( <code>Ext.lib.Region region</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2695 <div class="short">Sets the element's position and size the specified region. If animation is true then width, height, x and y will be a...</div>
\r
2696 <div class="long">
\r
2697 Sets the element's position and size the specified region. If animation is true then width, height, x and y will be animated concurrently. <div class="mdetail-params">
\r
2698 <strong>Parameters:</strong>
\r
2699 <ul><li><code>region</code> : Ext.lib.Region<div class="sub-desc">The region to fill</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>
\r
2700 <strong>Returns:</strong>
\r
2702 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2708 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setRegion" href="output/Ext.Element.html#setRegion">Element</a></td>
\r
2710 <tr class="method-row inherited alt expandable">
\r
2711 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2713 <a id="Ext.Layer-setRight"></a>
\r
2714 <b>setRight</b>( <code>String right</code> ) : Ext.Element <div class="mdesc">
\r
2715 <div class="short">Sets the element's CSS right style.</div>
\r
2716 <div class="long">
\r
2717 Sets the element's CSS right style. <div class="mdetail-params">
\r
2718 <strong>Parameters:</strong>
\r
2719 <ul><li><code>right</code> : String<div class="sub-desc">The right CSS property value</div></li> </ul>
\r
2720 <strong>Returns:</strong>
\r
2722 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2728 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setRight" href="output/Ext.Element.html#setRight">Element</a></td>
\r
2730 <tr class="method-row inherited expandable">
\r
2731 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2733 <a id="Ext.Layer-setSize"></a>
\r
2734 <b>setSize</b>( <code>Number width</code>, <code>Number height</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2735 <div class="short">Set the size of the element. If animation is true, both width an height will be animated concurrently.</div>
\r
2736 <div class="long">
\r
2737 Set the size of the element. If animation is true, both width an height will be animated concurrently. <div class="mdetail-params">
\r
2738 <strong>Parameters:</strong>
\r
2739 <ul><li><code>width</code> : Number<div class="sub-desc">The new width</div></li><li><code>height</code> : Number<div class="sub-desc">The new height</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>
\r
2740 <strong>Returns:</strong>
\r
2742 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2748 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setSize" href="output/Ext.Element.html#setSize">Element</a></td>
\r
2750 <tr class="method-row inherited alt expandable">
\r
2751 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2753 <a id="Ext.Layer-setStyle"></a>
\r
2754 <b>setStyle</b>( <code>String/Object property</code>, <span class="optional" title="Optional">[<code>String value</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2755 <div class="short">Wrapper for setting style properties, also takes single object parameter of multiple styles.</div>
\r
2756 <div class="long">
\r
2757 Wrapper for setting style properties, also takes single object parameter of multiple styles. <div class="mdetail-params">
\r
2758 <strong>Parameters:</strong>
\r
2759 <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>
\r
2760 <strong>Returns:</strong>
\r
2762 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2768 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setStyle" href="output/Ext.Element.html#setStyle">Element</a></td>
\r
2770 <tr class="method-row inherited expandable">
\r
2771 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2773 <a id="Ext.Layer-setTop"></a>
\r
2774 <b>setTop</b>( <code>String top</code> ) : Ext.Element <div class="mdesc">
\r
2775 <div class="short">Sets the element's top position directly using CSS style (instead of <a ext:cls="Ext.Element" ext:member="setY" href="output/Ext.Element.html#setY">setY</a>).</div>
\r
2776 <div class="long">
\r
2777 Sets the element's top position directly using CSS style (instead of <a ext:cls="Ext.Element" ext:member="setY" href="output/Ext.Element.html#setY">setY</a>). <div class="mdetail-params">
\r
2778 <strong>Parameters:</strong>
\r
2779 <ul><li><code>top</code> : String<div class="sub-desc">The top CSS property value</div></li> </ul>
\r
2780 <strong>Returns:</strong>
\r
2782 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2788 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setTop" href="output/Ext.Element.html#setTop">Element</a></td>
\r
2790 <tr class="method-row inherited alt expandable">
\r
2791 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2793 <a id="Ext.Layer-setVisibilityMode"></a>
\r
2794 <b>setVisibilityMode</b>( <code>visMode Element.VISIBILITY</code> ) : Ext.Element <div class="mdesc">
\r
2795 <div class="short">Sets the element's visibility mode. When setVisible() is called it
2796 will use this to determine whether to set the visi...</div>
\r
2797 <div class="long">
\r
2798 Sets the element's visibility mode. When setVisible() is called it
2799 will use this to determine whether to set the visibility or the display property. <div class="mdetail-params">
\r
2800 <strong>Parameters:</strong>
\r
2801 <ul><li><code>Element.VISIBILITY</code> : visMode<div class="sub-desc">or Element.DISPLAY</div></li> </ul>
\r
2802 <strong>Returns:</strong>
\r
2804 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2810 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setVisibilityMode" href="output/Ext.Element.html#setVisibilityMode">Element</a></td>
\r
2812 <tr class="method-row inherited expandable">
\r
2813 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2815 <a id="Ext.Layer-setVisible"></a>
\r
2816 <b>setVisible</b>( <code>Boolean visible</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2817 <div class="short">Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
2819 <div class="long">
\r
2820 Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
2821 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">
\r
2822 <strong>Parameters:</strong>
\r
2823 <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>
\r
2824 <strong>Returns:</strong>
\r
2826 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2832 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setVisible" href="output/Ext.Element.html#setVisible">Element</a></td>
\r
2834 <tr class="method-row inherited alt expandable">
\r
2835 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2837 <a id="Ext.Layer-setWidth"></a>
\r
2838 <b>setWidth</b>( <code>Number width</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2839 <div class="short">Set the width of the element</div>
\r
2840 <div class="long">
\r
2841 Set the width of the element <div class="mdetail-params">
\r
2842 <strong>Parameters:</strong>
\r
2843 <ul><li><code>width</code> : Number<div class="sub-desc">The new width</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>
\r
2844 <strong>Returns:</strong>
\r
2846 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2852 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setWidth" href="output/Ext.Element.html#setWidth">Element</a></td>
\r
2854 <tr class="method-row inherited expandable">
\r
2855 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2857 <a id="Ext.Layer-setX"></a>
\r
2858 <b>setX</b>( <code>Number The</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2859 <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>
\r
2860 <div class="long">
\r
2861 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">
\r
2862 <strong>Parameters:</strong>
\r
2863 <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>
\r
2864 <strong>Returns:</strong>
\r
2866 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2872 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setX" href="output/Ext.Element.html#setX">Element</a></td>
\r
2874 <tr class="method-row inherited alt expandable">
\r
2875 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2877 <a id="Ext.Layer-setXY"></a>
\r
2878 <b>setXY</b>( <code>Array pos</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2879 <div class="short">Sets the position of the element in page coordinates, regardless of how the element is positioned.
2880 The element must b...</div>
\r
2881 <div class="long">
\r
2882 Sets the position of the element in page coordinates, regardless of how the element is positioned.
2883 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">
\r
2884 <strong>Parameters:</strong>
\r
2885 <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>
\r
2886 <strong>Returns:</strong>
\r
2888 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2894 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setXY" href="output/Ext.Element.html#setXY">Element</a></td>
\r
2896 <tr class="method-row inherited expandable">
\r
2897 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2899 <a id="Ext.Layer-setY"></a>
\r
2900 <b>setY</b>( <code>Number The</code>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2901 <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>
\r
2902 <div class="long">
\r
2903 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">
\r
2904 <strong>Parameters:</strong>
\r
2905 <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>
\r
2906 <strong>Returns:</strong>
\r
2908 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2914 <td class="msource"><a ext:cls="Ext.Element" ext:member="#setY" href="output/Ext.Element.html#setY">Element</a></td>
\r
2916 <tr class="method-row alt expandable">
\r
2917 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2919 <a id="Ext.Layer-setZIndex"></a>
\r
2920 <b>setZIndex</b>( <code>Number zindex</code> ) : this <div class="mdesc">
\r
2921 <div class="short">Sets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically
2923 <div class="long">
\r
2924 Sets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically
2925 incremented by two more than the value passed in so that it always shows above any shadow or shim (the shadow
2926 element, if any, will be assigned z-index + 1, and the shim element, if any, will be assigned the unmodified z-index). <div class="mdetail-params">
\r
2927 <strong>Parameters:</strong>
\r
2928 <ul><li><code>zindex</code> : Number<div class="sub-desc">The new z-index to set</div></li> </ul>
\r
2929 <strong>Returns:</strong>
\r
2931 <li><code>this</code><div class="sub-desc">The Layer</div></li>
\r
2937 <td class="msource">Layer</td>
\r
2939 <tr class="method-row inherited expandable">
\r
2940 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2942 <a id="Ext.Layer-show"></a>
\r
2943 <b>show</b>( <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2944 <div class="short">Show this element - Uses display mode to determine whether to use "display" or "visibility". See <a ext:cls="Ext.Element" ext:member="setVisible" href="output/Ext.Element.html#setVisible">setVisible</a>.</div>
\r
2945 <div class="long">
\r
2946 Show this element - Uses display mode to determine whether to use "display" or "visibility". See <a ext:cls="Ext.Element" ext:member="setVisible" href="output/Ext.Element.html#setVisible">setVisible</a>. <div class="mdetail-params">
\r
2947 <strong>Parameters:</strong>
\r
2948 <ul><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>
\r
2949 <strong>Returns:</strong>
\r
2951 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2957 <td class="msource"><a ext:cls="Ext.Element" ext:member="#show" href="output/Ext.Element.html#show">Element</a></td>
\r
2959 <tr class="method-row inherited alt expandable">
\r
2960 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2962 <a id="Ext.Layer-swallowEvent"></a>
\r
2963 <b>swallowEvent</b>( <code>String/Array eventName</code>, <span class="optional" title="Optional">[<code>Boolean preventDefault</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2964 <div class="short">Stops the specified event(s) from bubbling and optionally prevents the default action</div>
\r
2965 <div class="long">
\r
2966 Stops the specified event(s) from bubbling and optionally prevents the default action <div class="mdetail-params">
\r
2967 <strong>Parameters:</strong>
\r
2968 <ul><li><code>eventName</code> : String/Array<div class="sub-desc">an event / array of events to stop from bubbling</div></li><li><code>preventDefault</code> : Boolean<div class="sub-desc">(optional) true to prevent the default action too</div></li> </ul>
\r
2969 <strong>Returns:</strong>
\r
2971 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2977 <td class="msource"><a ext:cls="Ext.Element" ext:member="#swallowEvent" href="output/Ext.Element.html#swallowEvent">Element</a></td>
\r
2979 <tr class="method-row inherited expandable">
\r
2980 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2982 <a id="Ext.Layer-toggle"></a>
\r
2983 <b>toggle</b>( <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span> ) : Ext.Element <div class="mdesc">
\r
2984 <div class="short">Toggles the element's visibility or display, depending on visibility mode.</div>
\r
2985 <div class="long">
\r
2986 Toggles the element's visibility or display, depending on visibility mode. <div class="mdetail-params">
\r
2987 <strong>Parameters:</strong>
\r
2988 <ul><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>
\r
2989 <strong>Returns:</strong>
\r
2991 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
2997 <td class="msource"><a ext:cls="Ext.Element" ext:member="#toggle" href="output/Ext.Element.html#toggle">Element</a></td>
\r
2999 <tr class="method-row inherited alt expandable">
\r
3000 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3002 <a id="Ext.Layer-toggleClass"></a>
\r
3003 <b>toggleClass</b>( <code>String className</code> ) : Ext.Element <div class="mdesc">
\r
3004 <div class="short">Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).</div>
\r
3005 <div class="long">
\r
3006 Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). <div class="mdetail-params">
\r
3007 <strong>Parameters:</strong>
\r
3008 <ul><li><code>className</code> : String<div class="sub-desc">The CSS class to toggle</div></li> </ul>
\r
3009 <strong>Returns:</strong>
\r
3011 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
3017 <td class="msource"><a ext:cls="Ext.Element" ext:member="#toggleClass" href="output/Ext.Element.html#toggleClass">Element</a></td>
\r
3019 <tr class="method-row inherited expandable">
\r
3020 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3022 <a id="Ext.Layer-translatePoints"></a>
\r
3023 <b>translatePoints</b>( <code>Number/Array x</code>, <span class="optional" title="Optional">[<code>Number y</code>]</span> ) : Object <div class="mdesc">
\r
3024 <div class="short">Translates the passed page coordinates into left/top css values for this element</div>
\r
3025 <div class="long">
\r
3026 Translates the passed page coordinates into left/top css values for this element <div class="mdetail-params">
\r
3027 <strong>Parameters:</strong>
\r
3028 <ul><li><code>x</code> : Number/Array<div class="sub-desc">The page x or an array containing [x, y]</div></li><li><code>y</code> : Number<div class="sub-desc">(optional) The page y, required if x is not an array</div></li> </ul>
\r
3029 <strong>Returns:</strong>
\r
3031 <li><code>Object</code><div class="sub-desc">An object with left and top properties. e.g. {left: (value), top: (value)}</div></li>
\r
3037 <td class="msource"><a ext:cls="Ext.Element" ext:member="#translatePoints" href="output/Ext.Element.html#translatePoints">Element</a></td>
\r
3039 <tr class="method-row inherited alt expandable">
\r
3040 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3042 <a id="Ext.Layer-un"></a>
\r
3043 <b>un</b>( <code>String eventName</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.Element <div class="mdesc">
\r
3044 <div class="short">Removes an event handler from this element (shorthand for <a ext:cls="Ext.Element" ext:member="removeListener" href="output/Ext.Element.html#removeListener">removeListener</a>).</div>
\r
3045 <div class="long">
\r
3046 Removes an event handler from this element (shorthand for <a ext:cls="Ext.Element" ext:member="removeListener" href="output/Ext.Element.html#removeListener">removeListener</a>). <div class="mdetail-params">
\r
3047 <strong>Parameters:</strong>
\r
3048 <ul><li><code>eventName</code> : String<div class="sub-desc">the type of event to remove</div></li><li><code>fn</code> : Function<div class="sub-desc">the method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (The <tt>this</tt> reference) of the handler function. Defaults
3049 to this Element.</div></li> </ul>
\r
3050 <strong>Returns:</strong>
\r
3052 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
3058 <td class="msource"><a ext:cls="Ext.Element" ext:member="#un" href="output/Ext.Element.html#un">Element</a></td>
\r
3060 <tr class="method-row inherited expandable">
\r
3061 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3063 <a id="Ext.Layer-unclip"></a>
\r
3064 <b>unclip</b>() : Ext.Element <div class="mdesc">
\r
3065 <div class="short">Return clipping (overflow) to original clipping before clip() was called</div>
\r
3066 <div class="long">
\r
3067 Return clipping (overflow) to original clipping before clip() was called <div class="mdetail-params">
\r
3068 <strong>Parameters:</strong>
\r
3069 <ul><li>None.</li> </ul>
\r
3070 <strong>Returns:</strong>
\r
3072 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
3078 <td class="msource"><a ext:cls="Ext.Element" ext:member="#unclip" href="output/Ext.Element.html#unclip">Element</a></td>
\r
3080 <tr class="method-row inherited alt expandable">
\r
3081 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3083 <a id="Ext.Layer-unmask"></a>
\r
3084 <b>unmask</b>() : void <div class="mdesc">
\r
3085 <div class="short">Removes a previously applied mask.</div>
\r
3086 <div class="long">
\r
3087 Removes a previously applied mask. <div class="mdetail-params">
\r
3088 <strong>Parameters:</strong>
\r
3089 <ul><li>None.</li> </ul>
\r
3090 <strong>Returns:</strong>
\r
3092 <li><code>void</code></li>
\r
3098 <td class="msource"><a ext:cls="Ext.Element" ext:member="#unmask" href="output/Ext.Element.html#unmask">Element</a></td>
\r
3100 <tr class="method-row inherited expandable">
\r
3101 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3103 <a id="Ext.Layer-unselectable"></a>
\r
3104 <b>unselectable</b>() : Ext.Element <div class="mdesc">
\r
3105 <div class="short">Disables text selection for this element (normalized across browsers)</div>
\r
3106 <div class="long">
\r
3107 Disables text selection for this element (normalized across browsers) <div class="mdetail-params">
\r
3108 <strong>Parameters:</strong>
\r
3109 <ul><li>None.</li> </ul>
\r
3110 <strong>Returns:</strong>
\r
3112 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
3118 <td class="msource"><a ext:cls="Ext.Element" ext:member="#unselectable" href="output/Ext.Element.html#unselectable">Element</a></td>
\r
3120 <tr class="method-row inherited alt expandable">
\r
3121 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3123 <a id="Ext.Layer-up"></a>
\r
3124 <b>up</b>( <code>String selector</code>, <span class="optional" title="Optional">[<code>Number/Mixed maxDepth</code>]</span> ) : Ext.Element <div class="mdesc">
\r
3125 <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>
\r
3126 <div class="long">
\r
3127 Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).
3128 This is a shortcut for findParentNode() that always returns an Ext.Element. <div class="mdetail-params">
\r
3129 <strong>Parameters:</strong>
\r
3130 <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
3131 search as a number or element (defaults to 10 || document.body)</div></li> </ul>
\r
3132 <strong>Returns:</strong>
\r
3134 <li><code>Ext.Element</code><div class="sub-desc">The matching DOM node (or null if no match was found)</div></li>
\r
3140 <td class="msource"><a ext:cls="Ext.Element" ext:member="#up" href="output/Ext.Element.html#up">Element</a></td>
\r
3142 <tr class="method-row inherited expandable">
\r
3143 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3145 <a id="Ext.Layer-update"></a>
\r
3146 <b>update</b>( <code>String html</code>, <span class="optional" title="Optional">[<code>Boolean loadScripts</code>]</span>, <span class="optional" title="Optional">[<code>Function callback</code>]</span> ) : Ext.Element <div class="mdesc">
\r
3147 <div class="short">Update the innerHTML of this element, optionally searching for and processing scripts</div>
\r
3148 <div class="long">
\r
3149 Update the innerHTML of this element, optionally searching for and processing scripts <div class="mdetail-params">
\r
3150 <strong>Parameters:</strong>
\r
3151 <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>
\r
3152 <strong>Returns:</strong>
\r
3154 <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
\r
3160 <td class="msource"><a ext:cls="Ext.Element" ext:member="#update" href="output/Ext.Element.html#update">Element</a></td>
\r
3162 <tr class="method-row inherited alt expandable">
\r
3163 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
3165 <a id="Ext.Layer-wrap"></a>
\r
3166 <b>wrap</b>( <span class="optional" title="Optional">[<code>Object config</code>]</span>, <span class="optional" title="Optional">[<code>Boolean returnDom</code>]</span> ) : HTMLElement/Element <div class="mdesc">
\r
3167 <div class="short">Creates and wraps this element with another element</div>
\r
3168 <div class="long">
\r
3169 Creates and wraps this element with another element <div class="mdetail-params">
\r
3170 <strong>Parameters:</strong>
\r
3171 <ul><li><code>config</code> : Object<div class="sub-desc">(optional) DomHelper element config object for the wrapper element or null for an empty div</div></li><li><code>returnDom</code> : Boolean<div class="sub-desc">(optional) True to return the raw DOM element instead of Ext.Element</div></li> </ul>
\r
3172 <strong>Returns:</strong>
\r
3174 <li><code>HTMLElement/Element</code><div class="sub-desc">The newly created wrapper element</div></li>
\r
3180 <td class="msource"><a ext:cls="Ext.Element" ext:member="#wrap" href="output/Ext.Element.html#wrap">Element</a></td>
\r
3183 <a id="Ext.Layer-events"></a>
3184 <h2>Public Events</h2>
3185 <div class="no-members">This class has no public events.</div>