Package: | Roo |
Defined In: | Roo/CompositeElement.js. |
Class: | CompositeElement |
Subclasses: | Roo.CompositeElementLite |
var els = Roo.select("some-el div.some-class", true);
// or select directly from an existing element
var el = Roo.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 | |
---|---|---|
new Roo.CompositeElement
()
Create a new Roo.CompositeElement
Create a new Roo.CompositeElement
|
||
add
(String/Array els)
:
CompositeElement
Adds elements to this composite.
Adds elements to this composite.
|
Roo.CompositeElement | |
clear
()
Removes all elements.
Removes all elements.
|
Roo.CompositeElement | |
contains
()
:
Returns true if this composite contains the passed element
Returns true if this composite contains the passed element
|
Roo.CompositeElement | |
Calls the passed function passing (el, this, index) for each element in this composite.
|
Roo.CompositeElement | |
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.
|
Roo.CompositeElement | |
Roo.CompositeElement | ||
first
()
:
Roo.Element
Returns the first Element
Returns the first Element
|
Roo.CompositeElement | |
getCount
()
:
Returns the number of elements in this composite
Returns the number of elements in this composite
|
Roo.CompositeElement | |
indexOf
()
:
Returns true if this composite contains the passed element
Returns true if this composite contains the passed element
|
Roo.CompositeElement | |
item
(Number index)
:
Roo.Element
Returns the Element object at the specified index
Returns the Element object at the specified index
|
Roo.CompositeElement | |
last
()
:
Roo.Element
Returns the last Element
Returns the last Element
|
Roo.CompositeElement | |
removeElement
(Mixed el, Boolean removeDom)
:
CompositeElement
Removes the specified element(s).
Removes the specified element(s).
|
Roo.CompositeElement | |
replaceElement
(String/HTMLElement/Element/Number el, String/HTMLElement/Element replacement, Boolean domReplace)
:
CompositeElement
Replaces the specified element with the passed element.
Replaces the specified element with the passed element.
|
Roo.CompositeElement |