/* 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\n

Although 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\n

Example:

\n\n
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\n\n
Defined By

Properties

Ext.CompositeElementLite
view source
: Array
The Array of DOM elements which this CompositeElement encapsulates. ...

The Array of DOM elements which this CompositeElement encapsulates. Read-only.

\n\n\n

This 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\n

For example to add the nextAll method to the class to add all\nfollowing siblings of selected elements, the code would be

\n\n\n

\n\n
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
Defined By

Methods

Ext.CompositeElementLite
view source
( els ) : CompositeElement
Adds elements to this Composite object. ...

Adds elements to this Composite object.

\n

Parameters

  • els : Mixed

    Either an Array of DOM elements to add, or another Composite object who's elements should be added.

    \n

Returns

  • CompositeElement

    This Composite object.

    \n
Ext.CompositeElementLite
view source
( )
Removes all elements. ...

Removes all elements.

\n
Ext.CompositeElementLite
view source
( el ) : Object
Returns true if this composite contains the passed element ...

Returns true if this composite contains the passed element

\n

Parameters

  • el : Object

    {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.

    \n

Returns

  • Object

    Boolean

    \n
Ext.CompositeElementLite
view source
( fn, [scope] ) : CompositeElement
Calls the passed function for each element in this composite. ...

Calls the passed function for each element in this composite.

\n\n

Parameters

  • fn : Function

    The function to call. The function is passed the following parameters:

      \n
    • el : Element
      The current Element in the iteration.\nThis is the flyweight (shared) Ext.Element instance, so if you require a\na reference to the dom node, use el.dom.
    • \n
    • c : Composite
      This Composite object.
    • \n
    • idx : Number
      The zero-based index in the iteration.
    • \n

    \n
  • scope : Object (optional)

    The scope (this reference) in which the function is executed. (defaults to the Element)

    \n

Returns

  • CompositeElement

    this

    \n
Ext.CompositeElementLite
view source
( els ) : CompositeElement
Clears this Composite and adds the elements passed. ...

Clears this Composite and adds the elements passed.

\n

Parameters

  • els : Mixed

    Either an array of DOM elements, or another Composite from which to fill this Composite.

    \n

Returns

  • CompositeElement

    this

    \n
Ext.CompositeElementLite
view source
( selector ) : CompositeElement
Filters this composite to only elements that match the passed selector. ...

Filters this composite to only elements that match the passed selector.

\n

Parameters

  • selector : String/Function

    A string CSS selector or a comparison function.\nThe comparison function will be called with the following arguments:

      \n
    • el : Ext.Element
      The current DOM element.
    • \n
    • index : Number
      The current index within the collection.
    • \n

    \n

Returns

  • CompositeElement

    this

    \n
Ext.CompositeElementLite
view source
( ) : Ext.Element
Returns the first Element ...

Returns the first Element

\n

Returns

Ext.CompositeElementLite
view source
( ) : Object
Returns the number of elements in this Composite. ...

Returns the number of elements in this Composite.

\n

Returns

  • Object

    Number

    \n
Ext.CompositeElementLite
view source
( )private
Copies all of the functions from Ext.Element's prototype onto CompositeElementLite's prototype. ...

Copies 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

\n
Ext.CompositeElementLite
view source
( el ) : Object
Find the index of the passed element within the composite collection. ...

Find the index of the passed element within the composite collection.

\n

Parameters

  • el : Object

    {Mixed} The id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.

    \n

Returns

  • Object

    Number The index of the passed Ext.Element in the composite collection, or -1 if not found.

    \n
Ext.CompositeElementLite
view source
( index ) : Ext.Element
Returns a flyweight Element of the dom element object at the specified index ...

Returns a flyweight Element of the dom element object at the specified index

\n

Parameters

Returns

Ext.CompositeElementLite
view source
( ) : Ext.Element
Returns the last Element ...

Returns the last Element

\n

Returns

Ext.CompositeElementLite
view source
( el, [removeDom] ) : CompositeElementchainable
Removes the specified element(s). ...

Removes the specified element(s).

\n

Parameters

  • el : Mixed

    The id of an element, the Element itself, the index of the element in this composite\nor an array of any of those.

    \n
  • removeDom : Boolean (optional)

    True to also remove the element from the document

    \n

Returns

  • CompositeElement

    this

    \n
Ext.CompositeElementLite
view source
( el, replacement, [domReplace] ) : CompositeElementchainable
Replaces the specified element with the passed element. ...

Replaces the specified element with the passed element.

\n

Parameters

  • el : Mixed

    The id of an element, the Element itself, the index of the element in this composite\nto replace.

    \n
  • replacement : Mixed

    The id of an element or the Element itself.

    \n
  • domReplace : Boolean (optional)

    True to remove and replace the element in the document too.

    \n

Returns

  • CompositeElement

    this

    \n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"CompositeElementLite-more.html#Ext-CompositeElementLite","filename":"CompositeElementLite-more.js"},{"href":"CompositeElementLite.html#Ext-CompositeElementLite","filename":"CompositeElementLite.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.CompositeElementLite","meta":{},"name":"elements","id":"property-elements"}],"cfg":[],"css_var":[],"method":[{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"add","id":"method-add"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"clear","id":"method-clear"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"contains","id":"method-contains"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"each","id":"method-each"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"fill","id":"method-fill"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"filter","id":"method-filter"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"first","id":"method-first"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"getCount","id":"method-getCount"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{"private":true},"name":"importElementMethods","id":"method-importElementMethods"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"indexOf","id":"method-indexOf"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"item","id":"method-item"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{},"name":"last","id":"method-last"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{"chainable":true},"name":"removeElement","id":"method-removeElement"},{"tagname":"method","owner":"Ext.CompositeElementLite","meta":{"chainable":true},"name":"replaceElement","id":"method-replaceElement"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.CompositeElementLite","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.CompositeElementLite","mixins":[],"mixedInto":[]});