X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.CompositeElementLite.html diff --git a/docs/output/Ext.CompositeElementLite.html b/docs/output/Ext.CompositeElementLite.html index 26bb6e30..e4ae129b 100644 --- a/docs/output/Ext.CompositeElementLite.html +++ b/docs/output/Ext.CompositeElementLite.html @@ -1,311 +1,74 @@ -
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');
+Class Ext.CompositeElementLite
Package: Ext Defined In: CompositeElementLite.js Class: CompositeElementLite Subclasses: CompositeElement Extends: Object
This class encapsulates a collection of DOM elements, providing methods to filter
+members, or to perform collective actions upon the whole set.
+Although they are not listed, this class supports all of the methods of Ext.Element and
+Ext.Fx. The methods from these classes will be performed on all the elements in this collection.
+Example: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);
-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.
-
-
-
- Public Properties
- This class has no public properties.
- Public Methods
-
-
- Method
- Defined By
-
-
-
-
-
- add( String/Array els
) : CompositeElement
- Adds elements to this composite.
-
- Adds elements to this composite.
- Parameters:
- els
: String/ArrayA string CSS selector, an array of elements or an element
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- clear() : void
- Removes all elements.
-
- Removes all elements.
- Parameters:
- - None.
- Returns:
-
- void
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- contains( el {Mixed}
) : Boolean
- Returns true if this composite contains the passed element
-
- Returns true if this composite contains the passed element
- Parameters:
- {Mixed}
: elThe id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
- Returns:
-
- Boolean
-
-
-
-
-
- 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:
- fn
: FunctionThe function to callscope
: Object(optional) The this object (defaults to the element)
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- 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:
- els
: String/ArrayA string CSS selector, an array of elements or an element
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- 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:
- selector
: StringA string CSS selector
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- first() : Ext.Element
- Returns the first Element
-
- Returns the first Element
- Parameters:
- - None.
- Returns:
-
- Ext.Element
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- getCount() : Number
- Returns the number of elements in this composite
-
- Returns the number of elements in this composite
- Parameters:
- - None.
- Returns:
-
- Number
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- indexOf( el {Mixed}
) : Number
- Find the index of the passed element within the composite collection.
-
- Find the index of the passed element within the composite collection.
- Parameters:
- {Mixed}
: elThe id of an element, or an Ext.Element, or an HtmlElement to find within the composite collection.
- Returns:
-
- Number
The index of the passed Ext.Element in the composite collection, or -1 if not found.
-
-
-
-
-
- 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:
- index
: Number
- Returns:
-
- Ext.Element
-
-
-
-
-
- CompositeElementLite
-
-
-
-
-
- last() : Ext.Element
- Returns the last Element
-
- Returns the last Element
- Parameters:
- - None.
- Returns:
-
- Ext.Element
-
-
-
-
-
- CompositeElement
-
-
-
-
-
- removeElement( Mixed el
, [Boolean removeDom
] ) : CompositeElement
- Removes the specified element(s).
-
- Removes the specified element(s).
- Parameters:
- el
: MixedThe id of an element, the Element itself, the index of the element in this composite
-or an array of any of those.removeDom
: Boolean(optional) True to also remove the element from the document
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- 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:
- el
: MixedThe id of an element, the Element itself, the index of the element in this composite
-to replace.replacement
: MixedThe id of an element or the Element itself.domReplace
: Boolean(Optional) True to remove and replace the element in the document too.
- Returns:
-
- CompositeElement
this
-
-
-
-
-
- CompositeElement
-
-
-
- Public Events
- This class has no public events.
-
\ No newline at end of file
+els.setWidth(100); // all elements become 100 width
+els.hide(true); // all elements fade out and hide
+// or
+els.setWidth(100).hide(true);
+
Property | Defined By | |
---|---|---|
elements : Array The Array of DOM elements which this CompositeElement encapsulates. Read-only.
+This will not usually be accessed in d... The Array of DOM elements which this CompositeElement encapsulates. Read-only. +This will not usually be accessed in developers' code, but developers wishing +to augment the capabilities of the CompositeElementLite class may use it when adding +methods to the class. +For example to add the
| CompositeElementLite |
Method | Defined By | |
---|---|---|
add( Mixed els )
+ :
+ CompositeElementAdds elements to this Composite object. Adds elements to this Composite object. Parameters:
| CompositeElementLite | |
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 for each element in this composite. Calls the passed function for each element in this composite. Parameters:
| CompositeElementLite | |
fill( Mixed els )
+ :
+ CompositeElementClears this Composite and adds the elements passed. Clears this Composite and adds the elements passed. Parameters:
| CompositeElementLite | |
filter( String/Function 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 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:
| 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 |