1 Ext.data.JsonP.Ext_CompositeElementLite({
3 "name": "Ext.CompositeElementLite",
4 "doc": "<p>This class encapsulates a <i>collection</i> of DOM elements, providing methods to filter\nmembers, or to perform collective actions upon the whole set.</p>\n\n\n<p>Although they are not listed, this class supports all of the methods of <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> and\n<a href=\"#/api/Ext.fx.Anim\" rel=\"Ext.fx.Anim\" class=\"docClass\">Ext.fx.Anim</a>. The methods from these classes will be performed on all the elements in this collection.</p>\n\n\n<p>Example:</p>\n\n<pre><code>var els = Ext.select(\"#some-el div.some-class\");\n// or select directly from an existing element\nvar el = Ext.get('some-el');\nel.select('div.some-class');\n\nels.setWidth(100); // all elements become 100 width\nels.hide(true); // all elements fade out and hide\n// or\nels.setWidth(100).hide(true);\n</code></pre>\n\n",
9 "alternateClassNames": [
24 "member": "Ext.CompositeElementLite",
25 "doc": "<p>Adds elements to this Composite object.</p>\n",
30 "doc": "<p>Either an Array of DOM elements to add, or another Composite object who's elements should be added.</p>\n",
41 "type": "CompositeElement",
42 "doc": "<p>This Composite object.</p>\n"
46 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
48 "html_filename": "CompositeElementLite.html",
49 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-add",
50 "shortDoc": "<p>Adds elements to this Composite object.</p>\n"
55 "member": "Ext.CompositeElementLite",
56 "doc": "<p>Removes all elements.</p>\n",
66 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
68 "html_filename": "CompositeElementLite.html",
69 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-clear",
70 "shortDoc": "<p>Removes all elements.</p>\n"
75 "member": "Ext.CompositeElementLite",
76 "doc": "<p>Returns true if this composite contains the passed element</p>\n",
81 "doc": "<p>{Mixed} The id of an element, or an <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a>, or an HtmlElement to find within the composite collection.</p>\n",
87 "doc": "<p>Boolean</p>\n"
91 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite-more.js",
93 "html_filename": "CompositeElementLite-more.html",
94 "href": "CompositeElementLite-more.html#Ext-CompositeElementLite-method-contains",
95 "shortDoc": "<p>Returns true if this composite contains the passed element</p>\n"
100 "member": "Ext.CompositeElementLite",
101 "doc": "<p>Calls the passed function for each element in this composite.</p>\n\n",
106 "doc": "<p>The function to call. The function is passed the following parameters:<ul>\n<li><b>el</b> : Element<div class=\"sub-desc\">The current Element in the iteration.\n<b>This is the flyweight (shared) <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> instance, so if you require a\na reference to the dom node, use el.dom.</b></div></li>\n<li><b>c</b> : Composite<div class=\"sub-desc\">This Composite object.</div></li>\n<li><b>idx</b> : Number<div class=\"sub-desc\">The zero-based index in the iteration.</div></li>\n</ul></p>\n",
112 "doc": "<p>(optional) The scope (<i>this</i> reference) in which the function is executed. (defaults to the Element)</p>\n",
117 "type": "CompositeElement",
118 "doc": "<p>this</p>\n"
122 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
124 "html_filename": "CompositeElementLite.html",
125 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-each",
126 "shortDoc": "<p>Calls the passed function for each element in this composite.</p>\n\n"
131 "member": "Ext.CompositeElementLite",
132 "doc": "<p>Clears this Composite and adds the elements passed.</p>\n",
137 "doc": "<p>Either an array of DOM elements, or another Composite from which to fill this Composite.</p>\n",
142 "type": "CompositeElement",
143 "doc": "<p>this</p>\n"
147 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
149 "html_filename": "CompositeElementLite.html",
150 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-fill",
151 "shortDoc": "<p>Clears this Composite and adds the elements passed.</p>\n"
156 "member": "Ext.CompositeElementLite",
157 "doc": "<p>Filters this composite to only elements that match the passed selector.</p>\n",
160 "type": "String/Function",
162 "doc": "<p>A string CSS selector or a comparison function.\nThe comparison function will be called with the following arguments:<ul>\n<li><code>el</code> : Ext.core.Element<div class=\"sub-desc\">The current DOM element.</div></li>\n<li><code>index</code> : Number<div class=\"sub-desc\">The current index within the collection.</div></li>\n</ul></p>\n",
167 "type": "CompositeElement",
168 "doc": "<p>this</p>\n"
172 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
174 "html_filename": "CompositeElementLite.html",
175 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-filter",
176 "shortDoc": "<p>Filters this composite to only elements that match the passed selector.</p>\n"
181 "member": "Ext.CompositeElementLite",
182 "doc": "<p>Returns the first Element</p>\n",
187 "type": "Ext.core.Element",
192 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite-more.js",
194 "html_filename": "CompositeElementLite-more.html",
195 "href": "CompositeElementLite-more.html#Ext-CompositeElementLite-method-first",
196 "shortDoc": "<p>Returns the first Element</p>\n"
201 "member": "Ext.CompositeElementLite",
202 "doc": "<p>Returns the number of elements in this Composite.</p>\n",
208 "doc": "<p>Number</p>\n"
212 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
214 "html_filename": "CompositeElementLite.html",
215 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-getCount",
216 "shortDoc": "<p>Returns the number of elements in this Composite.</p>\n"
221 "member": "Ext.CompositeElementLite",
222 "doc": "<p>Find the index of the passed element within the composite collection.</p>\n",
227 "doc": "<p>{Mixed} The id of an element, or an <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a>, or an HtmlElement to find within the composite collection.</p>\n",
233 "doc": "<p>Number The index of the passed <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> in the composite collection, or -1 if not found.</p>\n"
237 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
239 "html_filename": "CompositeElementLite.html",
240 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-indexOf",
241 "shortDoc": "<p>Find the index of the passed element within the composite collection.</p>\n"
246 "member": "Ext.CompositeElementLite",
247 "doc": "<p>Returns a flyweight Element of the dom element object at the specified index</p>\n",
257 "type": "Ext.core.Element",
262 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
264 "html_filename": "CompositeElementLite.html",
265 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-item",
266 "shortDoc": "<p>Returns a flyweight Element of the dom element object at the specified index</p>\n"
271 "member": "Ext.CompositeElementLite",
272 "doc": "<p>Returns the last Element</p>\n",
277 "type": "Ext.core.Element",
282 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite-more.js",
284 "html_filename": "CompositeElementLite-more.html",
285 "href": "CompositeElementLite-more.html#Ext-CompositeElementLite-method-last",
286 "shortDoc": "<p>Returns the last Element</p>\n"
290 "name": "removeElement",
291 "member": "Ext.CompositeElementLite",
292 "doc": "<p>Removes the specified element(s).</p>\n",
297 "doc": "<p>The id of an element, the Element itself, the index of the element in this composite\nor an array of any of those.</p>\n",
303 "doc": "<p>(optional) True to also remove the element from the document</p>\n",
308 "type": "CompositeElement",
309 "doc": "<p>this</p>\n"
313 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite-more.js",
315 "html_filename": "CompositeElementLite-more.html",
316 "href": "CompositeElementLite-more.html#Ext-CompositeElementLite-method-removeElement",
317 "shortDoc": "<p>Removes the specified element(s).</p>\n"
321 "name": "replaceElement",
322 "member": "Ext.CompositeElementLite",
323 "doc": "<p>Replaces the specified element with the passed element.</p>\n",
328 "doc": "<p>The id of an element, the Element itself, the index of the element in this composite\nto replace.</p>\n",
333 "name": "replacement",
334 "doc": "<p>The id of an element or the Element itself.</p>\n",
339 "name": "domReplace",
340 "doc": "<p>(Optional) True to remove and replace the element in the document too.</p>\n",
345 "type": "CompositeElement",
346 "doc": "<p>this</p>\n"
350 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
352 "html_filename": "CompositeElementLite.html",
353 "href": "CompositeElementLite.html#Ext-CompositeElementLite-method-replaceElement",
354 "shortDoc": "<p>Replaces the specified element with the passed element.</p>\n"
359 "tagname": "property",
361 "member": "Ext.CompositeElementLite",
363 "doc": "<p>The Array of DOM elements which this CompositeElement encapsulates. Read-only.</p>\n\n\n<p>This will not <i>usually</i> be accessed in developers' code, but developers wishing\nto augment the capabilities of the CompositeElementLite class may use it when adding\nmethods to the class.</p>\n\n\n<p>For example to add the <code>nextAll</code> method to the class to <b>add</b> all\nfollowing siblings of selected elements, the code would be</p>\n\n\n<p><code></p>\n\n<pre>Ext.override(Ext.CompositeElementLite, {\n nextAll: function() {\n var els = this.elements, i, l = els.length, n, r = [], ri = -1;\n\n// Loop through all elements in this Composite, accumulating\n// an Array of all siblings.\n for (i = 0; i < l; i++) {\n for (n = els[i].nextSibling; n; n = n.nextSibling) {\n r[++ri] = n;\n }\n }\n\n// Add all found siblings to this Composite\n return this.add(r);\n }\n});</pre>\n\n\n<p></code></p>\n",
366 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite.js",
368 "html_filename": "CompositeElementLite.html",
369 "href": "CompositeElementLite.html#Ext-CompositeElementLite-property-elements",
370 "shortDoc": "The Array of DOM elements which this CompositeElement encapsulates. Read-only.\n\n\nThis will not usually be accessed in..."
376 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/dom/CompositeElementLite-more.js",
378 "html_filename": "CompositeElementLite-more.html",
379 "href": "CompositeElementLite-more.html#Ext-CompositeElementLite",
391 "Ext.CompositeElement"