Class Ext.CompositeElementLite
Flyweight composite class. Reuses the same Ext.Element for element operations.
NOTE: Although they are not listed, this class supports all of the set/update methods of Ext.Element. All Ext.Element
actions will be performed on all the elements in this collection.
属性
-
方法
-
事件
公共属性
此类没有公共属性。
公共方法
| |
add(String/Array els) : CompositeElement |
CompositeElement |
| Adds elements to this composite. |
| |
each(Function fn, [Object scope]) : CompositeElement |
CompositeElementLite |
| Calls the passed function passing (el, this, index) for each element in this composite. The element
passed is the fly... |
| |
item(Number index) : Ext.Element |
CompositeElementLite |
| Returns a flyweight Element of the dom element object at the specified index |
公共事件
此类没有公共事件。
方法详情
add
public function add(String/Array els)
Adds elements to this composite.
each
public function each(Function fn, [Object scope])
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.
This method is defined by CompositeElementLite.
item
public function item(Number index)
Returns a flyweight Element of the dom element object at the specified index
This method is defined by CompositeElementLite.