| Package: | Ext |
| Defined In: | CompositeElementLite.js |
| Class: | CompositeElementLite |
| Extends: | Object |
var els = Ext.select("#some-el div.some-class");
// or select directly from an existing element
var el = Ext.get('some-el');
el.select('div.some-class');
els.setWidth(100); // all elements become 100 width
els.hide(true); // all elements fade out and hide
// or
els.setWidth(100).hide(true);| Method | Defined By | |
|---|---|---|
| clear()
:
void Removes all elements. Removes all elements. Parameters:
| CompositeElementLite | |
each( Function fn, [Object scope] )
:
CompositeElementCalls the passed function passing (el, this, index) for each element in this composite. The element
passed is the fl... Calls the passed function passing (el, this, index) for each element in this composite. The element
passed is the flyweight (shared) Ext.Element instance, so if you require a
a reference to the dom node, use el.dom. Parameters:
| CompositeElementLite | |
| getCount()
:
Number Returns the number of elements in this composite Returns the number of elements in this composite Parameters:
| CompositeElementLite | |
indexOf( el {Mixed} )
:
NumberFind the index of the passed element within the composite collection. Find the index of the passed element within the composite collection. Parameters:
| CompositeElementLite | |
item( Number index )
:
Ext.ElementReturns 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 Parameters:
| CompositeElementLite | |
replaceElement( Mixed el, Mixed replacement, [Boolean domReplace] )
:
CompositeElementReplaces the specified element with the passed element. Replaces the specified element with the passed element. Parameters:
| CompositeElementLite | |