Class type Ext_dom_CompositeElementLite.t


class type t = object .. end
Inherits
method elements : Dom_html.element Js.t Js.js_array Js.t Js.readonly_prop

The Array of DOM elements which this CompositeElement encapsulates.

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 nextAll method to the class to add all following siblings of selected elements, the code would be

Ext.override(Ext.dom.CompositeElementLite, {
    nextAll: function() {
        var elements = this.elements, i, l = elements.length, n, r = [], ri = -1;

        // Loop through all elements in this Composite, accumulating
        // an Array of all siblings.
        for (i = 0; i < l; i++) {
            for (n = elements[i].nextSibling; n; n = n.nextSibling) {
                r[++ri] = n;
            }
        }

        // Add all found siblings to this Composite
        return this.add(r);
    }
});

method isComposite : bool Js.t Js.prop

true in this class to identify an object as an instantiated CompositeElement, or subclass thereof.

Defaults to: true

method add : 'a.
'a Js.t ->
(< add : 'a. 'b; callParent : 'd 'e. 'd Js.t -> 'e Js.t Js.meth;
callSuper : 'f 'g. 'f Js.t -> 'g Js.t Js.meth;
clear : bool Js.t Js.optdef -> unit Js.meth;
contains : 'h. 'h Js.t -> bool Js.t Js.meth;
each : 'i 'j. 'i Js.callback -> 'j Js.t Js.optdef -> 'c Js.t Js.meth;
elements : Dom_html.element Js.t Js.js_array Js.t Js.readonly_prop;
fill : 'k. 'k Js.t -> 'c Js.t Js.meth;
filter : 'l. 'l Js.t -> 'c Js.t Js.meth;
first : Ext_dom_Element.t Js.t Js.meth;
getCount : Js.number Js.t Js.meth;
getInitialConfig : 'm. Js.js_string Js.t Js.optdef -> 'm Js.t Js.meth;
indexOf : 'n. 'n Js.t -> Js.number Js.t Js.meth;
initConfig : 'o. 'o Js.t -> 'c Js.t Js.meth;
isComposite : bool Js.t Js.prop;
item : Js.number Js.t -> Ext_dom_Element.t Js.t Js.meth;
last : Ext_dom_Element.t Js.t Js.meth;
removeElement : 'p. 'p Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
replaceElement : 'q 'r.
'q Js.t ->
'r Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
self : Ext_Class.t Js.t Js.prop;
slice : Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef ->
Dom_html.element Js.t Js.js_array Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth; .. >
as 'c)
Js.t Js.meth as 'b

Adds elements to this Composite object.

Parameters:

Returns:


method clear : bool Js.t Js.optdef -> unit Js.meth

Removes all elements from this Composite.

Parameters:


method contains : 'h. 'h Js.t -> bool Js.t Js.meth

Returns true if this composite contains the passed element.

Parameters:


method each : 'i 'j. 'i Js.callback -> 'j Js.t Js.optdef -> 'c Js.t Js.meth

Calls the passed function for each element in this composite.

Parameters:

Returns:


method fill : 'k. 'k Js.t -> 'c Js.t Js.meth

Clears this Composite and adds the elements passed.

Parameters:

Returns:


method filter : 'l. 'l Js.t -> 'c Js.t Js.meth

Filters this composite to only elements that match the passed selector.

Parameters:

Returns:


method first : Ext_dom_Element.t Js.t Js.meth

Returns the first Element


method getCount : Js.number Js.t Js.meth

Returns the number of elements in this Composite.


method indexOf : 'n. 'n Js.t -> Js.number Js.t Js.meth

Find the index of the passed element within the composite collection.

Parameters:

Returns:


method item : Js.number Js.t -> Ext_dom_Element.t Js.t Js.meth

Returns a flyweight Element of the dom element object at the specified index

Parameters:


method last : Ext_dom_Element.t Js.t Js.meth

Returns the last Element


method removeElement : 'p. 'p Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth

Removes the specified element(s).

Parameters:

Returns:


method replaceElement : 'q 'r. 'q Js.t -> 'r Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth

Replaces the specified element with the passed element.

Parameters:

Returns:


method slice : Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef -> Dom_html.element Js.t Js.js_array Js.t Js.meth

Gets a range nodes.

Parameters:

Returns: