+++ /dev/null
-{
- "name" : "Roo.CompositeElementLite",
- "augments" : [
- "Roo.CompositeElement"
- ],
- "desc" : "Flyweight composite class. Reuses the same Roo.Element for element operations.\n <pre><code>\n var els = Roo.select(\"#some-el div.some-class\");\n // or select directly from an existing element\n var el = Roo.get('some-el');\n el.select('div.some-class');\n\n els.setWidth(100); // all elements become 100 width\n els.hide(true); // all elements fade out and hide\n // or\n els.setWidth(100).hide(true);\n </code></pre><br><br>\n<b>NOTE: Although they are not listed, this class supports all of the set/update methods of Roo.Element. All Roo.Element\nactions will be performed on all the elements in this collection.</b>",
- "isSingleton" : false,
- "isStatic" : false,
- "isBuiltin" : false,
- "memberOf" : "CompositeElementLite",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- ],
- "config" : [
- ],
- "methods" : [
- {
- "name" : "each",
- "desc" : "Calls the passed function passing (el, this, index) for each element in this composite. <b>The element\npassed is the flyweight (shared) Roo.Element instance, so if you require a\na reference to the dom node, use el.dom.</b>",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElementLite",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "fn",
- "type" : "Function",
- "desc" : "The function to call",
- "isOptional" : false
- },
- {
- "name" : "scope",
- "type" : "Object",
- "desc" : "(optional) The <i>this</i> object (defaults to the element)",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "item",
- "desc" : "Returns a flyweight Element of the dom element object at the specified index",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElementLite",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "index",
- "type" : "Number",
- "desc" : "",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "Roo.Element",
- "desc" : ""
- }
- ]
- },
- {
- "name" : "add",
- "desc" : "Adds elements to this composite.",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "els",
- "type" : "String/Array",
- "desc" : "A string CSS selector, an array of elements or an element",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "contains",
- "desc" : "Returns true if this composite contains the passed element",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "",
- "desc" : "Boolean"
- }
- ]
- },
- {
- "name" : "replaceElement",
- "desc" : "Replaces the specified element with the passed element.",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "el",
- "type" : "String/HTMLElement/Element/Number",
- "desc" : "The id of an element, the Element itself, the index of the element in this composite\nto replace.",
- "isOptional" : false
- },
- {
- "name" : "replacement",
- "type" : "String/HTMLElement/Element",
- "desc" : "The id of an element or the Element itself.",
- "isOptional" : false
- },
- {
- "name" : "domReplace",
- "type" : "Boolean",
- "desc" : "(Optional) True to remove and replace the element in the document too.",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "fill",
- "desc" : "Clears this composite and adds the elements returned by the passed selector.",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "els",
- "type" : "String/Array",
- "desc" : "A string CSS selector, an array of elements or an element",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "clear",
- "desc" : "Removes all elements.",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- ]
- },
- {
- "name" : "filter",
- "desc" : "Filters this composite to only elements that match the passed selector.",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "selector",
- "type" : "String",
- "desc" : "A string CSS selector",
- "isOptional" : false
- },
- {
- "name" : "inverse",
- "type" : "Boolean",
- "desc" : "return inverse filter (not matches)",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "last",
- "desc" : "Returns the last Element",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "Roo.Element",
- "desc" : ""
- }
- ]
- },
- {
- "name" : "removeElement",
- "desc" : "Removes the specified element(s).",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- {
- "name" : "el",
- "type" : "Mixed",
- "desc" : "The id of an element, the Element itself, the index of the element in this composite\nor an array of any of those.",
- "isOptional" : false
- },
- {
- "name" : "removeDom",
- "type" : "Boolean",
- "desc" : "(optional) True to also remove the element from the document",
- "isOptional" : false
- }
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "CompositeElement",
- "desc" : "this"
- }
- ]
- },
- {
- "name" : "indexOf",
- "desc" : "Returns true if this composite contains the passed element",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "",
- "desc" : "Boolean"
- }
- ]
- },
- {
- "name" : "getCount",
- "desc" : "Returns the number of elements in this composite",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "",
- "desc" : "Number"
- }
- ]
- },
- {
- "name" : "first",
- "desc" : "Returns the first Element",
- "isStatic" : false,
- "isConstructor" : false,
- "isPrivate" : false,
- "memberOf" : "Roo.CompositeElement",
- "example" : "",
- "deprecated" : "",
- "since" : "",
- "see" : "",
- "params" : [
- ],
- "returns" : [
- {
- "name" : "",
- "type" : "Roo.Element",
- "desc" : ""
- }
- ]
- }
- ],
- "events" : [
- ]
-}
\ No newline at end of file