CompositeElementLiteCompositeElement
| Package: | Ext |
| Defined In: | CompositeElement.js |
| Class: | CompositeElement |
| Extends: | CompositeElementLite |
var els = Ext.select("#some-el div.some-class", true);
// or select directly from an existing element
var el = Ext.get('some-el');
el.select('div.some-class', true);
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 | |
|---|---|---|
add( String/Array els )
:
CompositeElementAdds elements to this composite. Adds elements to this composite. Parameters:
| CompositeElement | |
| clear()
:
void Removes all elements. Removes all elements. Parameters:
| CompositeElementLite | |
contains( el {Mixed} )
:
BooleanReturns true if this composite contains the passed element Returns true if this composite contains the passed element Parameters:
| CompositeElementLite | |
each( Function fn, [Object scope] )
:
CompositeElementCalls the passed function passing (el, this, index) for each element in this composite. Calls the passed function passing (el, this, index) for each element in this composite. Parameters:
| CompositeElement | |
fill( String/Array els )
:
CompositeElementClears this composite and adds the elements returned by the passed selector. Clears this composite and adds the elements returned by the passed selector. Parameters:
| CompositeElementLite | |
filter( String selector )
:
CompositeElementFilters this composite to only elements that match the passed selector. Filters this composite to only elements that match the passed selector. Parameters:
| CompositeElementLite | |
| first()
:
Ext.Element Returns the first Element Returns the first Element 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 the Element object at the specified index Returns the Element object at the specified index Parameters:
| CompositeElement | |
| last()
:
Ext.Element Returns the last Element Returns the last Element Parameters:
| CompositeElementLite | |
removeElement( Mixed el, [Boolean removeDom] )
:
CompositeElementRemoves the specified element(s). Removes the specified element(s). 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 | |