/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_CompositeElementLite({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.CompositeElement"],"extends":null,"uses":[],"html":"
Subclasses
Files
This class encapsulates a collection of DOM elements, providing methods to filter\nmembers, or to perform collective actions upon the whole set.
\n\n\nAlthough they are not listed, this class supports all of the methods of Ext.Element and\nExt.Fx. The methods from these classes will be performed on all the elements in this collection.
\n\n\nExample:
\n\nvar 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
\n\n
The Array of DOM elements which this CompositeElement encapsulates. Read-only.
\n\n\nThis will not usually 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.
\n\n\nFor example to add the nextAll
method to the class to add all\nfollowing siblings of selected elements, the code would be
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});\n\n\n\n
Adds elements to this Composite object.
\nEither an Array of DOM elements to add, or another Composite object who's elements should be added.
\nThis Composite object.
\nReturns true if this composite contains the passed element
\n{Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
\nBoolean
\nCalls the passed function for each element in this composite.
\n\nThe function to call. The function is passed the following parameters:
The scope (this reference) in which the function is executed. (defaults to the Element)
\nthis
\nClears this Composite and adds the elements passed.
\nEither an array of DOM elements, or another Composite from which to fill this Composite.
\nthis
\nFilters this composite to only elements that match the passed selector.
\nA string CSS selector or a comparison function.\nThe comparison function will be called with the following arguments:
el
: Ext.Elementindex
: Numberthis
\nReturns the number of elements in this Composite.
\nNumber
\nCopies all of the functions from Ext.Element's prototype onto CompositeElementLite's prototype.\nThis is called twice - once immediately below, and once again after additional Ext.Element\nare added in Ext JS
\nFind the index of the passed element within the composite collection.
\n{Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
\nNumber The index of the passed Ext.Element in the composite collection, or -1 if not found.
\nReturns a flyweight Element of the dom element object at the specified index
\nRemoves the specified element(s).
\nThe id of an element, the Element itself, the index of the element in this composite\nor an array of any of those.
\nTrue to also remove the element from the document
\nthis
\nReplaces the specified element with the passed element.
\nThe id of an element, the Element itself, the index of the element in this composite\nto replace.
\nThe id of an element or the Element itself.
\nTrue to remove and replace the element in the document too.
\nthis
\n