-
- <div id="method-Ext.CompositeElementLite-removeElement"></div>/**\r
- * Removes the specified element(s).\r
- * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite\r
- * or an array of any of those.\r
- * @param {Boolean} removeDom (optional) True to also remove the element from the document\r
- * @return {CompositeElement} this\r
- */\r
- removeElement : function(keys, removeDom){\r
- var me = this,\r
- els = this.elements, \r
- el; \r
- Ext.each(keys, function(val){\r
- if ((el = (els[val] || els[val = me.indexOf(val)]))) {\r
- if(removeDom){\r
- if(el.dom){\r
- el.remove();\r
- }else{\r
- Ext.removeNode(el);\r
- }\r
- }\r
- els.splice(val, 1); \r
- }\r
- });\r
- return this;\r
- } \r
+
+<span id='Ext-CompositeElementLite-method-first'> /**
+</span> * Returns the first Element
+ * @return {Ext.core.Element}
+ */
+ first : function(){
+ return this.item(0);
+ },
+
+<span id='Ext-CompositeElementLite-method-last'> /**
+</span> * Returns the last Element
+ * @return {Ext.core.Element}
+ */
+ last : function(){
+ return this.item(this.getCount()-1);
+ },
+
+<span id='Ext-CompositeElementLite-method-contains'> /**
+</span> * Returns true if this composite contains the passed element
+ * @param el {Mixed} The id of an element, or an Ext.core.Element, or an HtmlElement to find within the composite collection.
+ * @return Boolean
+ */
+ contains : function(el){
+ return this.indexOf(el) != -1;
+ },
+
+<span id='Ext-CompositeElementLite-method-removeElement'> /**
+</span> * Removes the specified element(s).
+ * @param {Mixed} el The id of an element, the Element itself, the index of the element in this composite
+ * or an array of any of those.
+ * @param {Boolean} removeDom (optional) True to also remove the element from the document
+ * @return {CompositeElement} this
+ */
+ removeElement : function(keys, removeDom){
+ var me = this,
+ els = this.elements,
+ el;
+ Ext.each(keys, function(val){
+ if ((el = (els[val] || els[val = me.indexOf(val)]))) {
+ if(removeDom){
+ if(el.dom){
+ el.remove();
+ }else{
+ Ext.removeNode(el);
+ }
+ }
+ els.splice(val, 1);
+ }
+ });
+ return this;
+ }