Roo.CompositeElement Roo.CompositeElementLite
Package: | Roo |
Defined In: | Roo/CompositeElementLite.js. |
Class: | CompositeElementLite |
Extends: | Roo.CompositeElement |
var els = Roo.select("some-el div.some-class");
// or select directly from an existing element
var el = Roo.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 | |
---|---|---|
new Roo.CompositeElementLite
()
Create a new Roo.CompositeElementLite
Create a new Roo.CompositeElementLite
|
||
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.
Calls the passed function passing (el, this, index) for each element in this composite. The element
passed is the flyweight (shared) Roo.Element instance, so if you require a a reference to the dom node, use el.dom.
|
Roo.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.
|
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 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
|
Roo.CompositeElementLite | |
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 |