CompositeElement CompositeElementLite
Package: | Ext |
Defined In: | CompositeElement.js |
Class: | CompositeElementLite |
Extends: | CompositeElement |
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 | |
---|---|---|
add( String/Array els ) : CompositeElement Adds elements to this composite.
Adds elements to this composite.
Parameters:
|
CompositeElement | |
clear() : void Removes all elements.
Removes all elements.
Parameters:
|
CompositeElement | |
contains() : Boolean Returns true if this composite contains the passed element
Returns true if this composite contains the passed element
Parameters:
|
CompositeElement | |
each( Function fn , [Object scope ] ) : CompositeElement Calls the passed function passing (el, this, index) for each element in this composite. The element
passed is the fly...
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 | |
fill( String/Array els ) : CompositeElement Clears this composite and adds the elements returned by the passed selector.
Clears this composite and adds the elements returned by the passed selector.
Parameters:
|
CompositeElement | |
filter( String selector ) : CompositeElement Filters this composite to only elements that match the passed selector.
Filters this composite to only elements that match the passed selector.
Parameters:
|
CompositeElement | |
first() : Ext.Element Returns the first Element
Returns the first Element
Parameters:
|
CompositeElement | |
getCount() : Number Returns the number of elements in this composite
Returns the number of elements in this composite
Parameters:
|
CompositeElement | |
indexOf() : Boolean Returns true if this composite contains the passed element
Returns true if this composite contains the passed element
Parameters:
|
CompositeElement | |
item( Number 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
Parameters:
|
CompositeElementLite | |
last() : Ext.Element Returns the last Element
Returns the last Element
Parameters:
|
CompositeElement | |
removeElement( Mixed el , [Boolean removeDom ] ) : CompositeElement Removes the specified element(s).
Removes the specified element(s).
Parameters:
|
CompositeElement | |
replaceElement( Mixed el , Mixed replacement , [Boolean domReplace ] ) : CompositeElement Replaces the specified element with the passed element.
Replaces the specified element with the passed element.
Parameters:
|
CompositeElement |