X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/docs/output/Ext.DomQuery.js diff --git a/docs/output/Ext.DomQuery.js b/docs/output/Ext.DomQuery.js index 7f8c8cd4..ba447a69 100644 --- a/docs/output/Ext.DomQuery.js +++ b/docs/output/Ext.DomQuery.js @@ -1,405 +1 @@ -Ext.data.JsonP.Ext_DomQuery({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": null, - "members": { - "cfg": [ - - ], - "method": [ - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-compile", - "shortDoc": "Compiles a selector/xpath query into a reusable function. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query

\n", - "name": "selector" - }, - { - "type": "String", - "optional": true, - "doc": "

(optional) Either \"select\" (the default) or \"simple\" for a simple selector match

\n", - "name": "type" - } - ], - "name": "compile", - "owner": "Ext.DomQuery", - "doc": "

Compiles a selector/xpath query into a reusable function. The returned function\ntakes one parameter \"root\" (optional), which is the context node from where the query should start.

\n", - "linenr": 431, - "return": { - "type": "Function", - "doc": "\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-filter", - "shortDoc": "Filters an array of elements to only include matches of a simple selector (e.g. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "Array", - "optional": false, - "doc": "

An array of elements to filter

\n", - "name": "el" - }, - { - "type": "String", - "optional": false, - "doc": "

The simple selector to test

\n", - "name": "selector" - }, - { - "type": "Boolean", - "optional": false, - "doc": "

If true, it returns the elements that DON'T match\nthe selector instead of the ones that match

\n", - "name": "nonMatches" - } - ], - "name": "filter", - "owner": "Ext.DomQuery", - "doc": "

Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child)

\n", - "linenr": 672, - "return": { - "type": "Array", - "doc": "

An Array of DOM elements which match the selector. If there are\nno matches, and empty Array is returned.

\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-is", - "shortDoc": "Returns true if the passed element(s) match the passed simple selector (e.g. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String/HTMLElement/Array", - "optional": false, - "doc": "

An element id, element or array of elements

\n", - "name": "el" - }, - { - "type": "String", - "optional": false, - "doc": "

The simple selector to test

\n", - "name": "selector" - } - ], - "name": "is", - "owner": "Ext.DomQuery", - "doc": "

Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child)

\n", - "linenr": 657, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-jsSelect", - "shortDoc": "Selects an array of DOM nodes using JavaScript-only implementation. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query (can be a comma separated list of selectors)

\n", - "name": "selector" - }, - { - "type": "Node/String", - "optional": true, - "doc": "

(optional) The start of the query (defaults to document).

\n", - "name": "root" - }, - { - "type": "Object", - "optional": false, - "doc": "\n", - "name": "type" - } - ], - "name": "jsSelect", - "owner": "Ext.DomQuery", - "doc": "

Selects an array of DOM nodes using JavaScript-only implementation.

\n\n

Use select to take advantage of browsers built-in support for CSS selectors.

\n", - "linenr": 525, - "return": { - "type": "Array", - "doc": "

An Array of DOM elements which match the selector. If there are\nno matches, and empty Array is returned.

\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-select", - "shortDoc": "Selects an array of DOM nodes by CSS/XPath selector. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query

\n", - "name": "path" - }, - { - "type": "Node", - "optional": true, - "doc": "

(optional) The start of the query (defaults to document).

\n", - "name": "root" - } - ], - "name": "select", - "owner": "Ext.DomQuery", - "doc": "

Selects an array of DOM nodes by CSS/XPath selector.

\n\n

Uses document.querySelectorAll if browser supports that, otherwise falls back to\njsSelect to do the work.

\n\n

Aliased as Ext.query.

\n", - "linenr": 580, - "return": { - "type": "Array", - "doc": "

An array of DOM elements (not a NodeList as returned by querySelectorAll).\nEmpty array when no matches.

\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-selectNode", - "shortDoc": "Selects a single element. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query

\n", - "name": "selector" - }, - { - "type": "Node", - "optional": true, - "doc": "

(optional) The start of the query (defaults to document).

\n", - "name": "root" - } - ], - "name": "selectNode", - "owner": "Ext.DomQuery", - "doc": "

Selects a single element.

\n", - "linenr": 610, - "return": { - "type": "Element", - "doc": "

The DOM element which matched the selector.

\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-selectNumber", - "shortDoc": "Selects the value of a node, parsing integers and floats. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query

\n", - "name": "selector" - }, - { - "type": "Node", - "optional": true, - "doc": "

(optional) The start of the query (defaults to document).

\n", - "name": "root" - }, - { - "type": "Number", - "optional": false, - "doc": "\n", - "name": "defaultValue" - } - ], - "name": "selectNumber", - "owner": "Ext.DomQuery", - "doc": "

Selects the value of a node, parsing integers and floats. Returns the defaultValue, or 0 if none is specified.

\n", - "linenr": 645, - "return": { - "type": "Number", - "doc": "\n" - }, - "html_filename": "DomQuery.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "DomQuery.html#Ext-DomQuery-method-selectValue", - "shortDoc": "Selects the value of a node, optionally replacing null with the defaultValue. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The selector/xpath query

\n", - "name": "selector" - }, - { - "type": "Node", - "optional": true, - "doc": "

(optional) The start of the query (defaults to document).

\n", - "name": "root" - }, - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "defaultValue" - } - ], - "name": "selectValue", - "owner": "Ext.DomQuery", - "doc": "

Selects the value of a node, optionally replacing null with the defaultValue.

\n", - "linenr": 620, - "return": { - "type": "String", - "doc": "\n" - }, - "html_filename": "DomQuery.html" - } - ], - "property": [ - { - "type": "Object", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "property", - "href": "DomQuery.html#Ext-DomQuery-property-matchers", - "shortDoc": "Collection of matching regular expressions and code snippets. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "name": "matchers", - "owner": "Ext.DomQuery", - "doc": "

Collection of matching regular expressions and code snippets.\nEach capture group within () will be replace the {} in the select\nstatement as specified by their index.

\n", - "linenr": 690, - "html_filename": "DomQuery.html" - }, - { - "type": "Object", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "property", - "href": "DomQuery.html#Ext-DomQuery-property-operators", - "shortDoc": "Collection of operator comparison functions. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "name": "operators", - "owner": "Ext.DomQuery", - "doc": "

Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=.\nNew operators can be added as long as the match the format c= where c is any character other than space, > <.

\n", - "linenr": 713, - "html_filename": "DomQuery.html" - }, - { - "type": "Object", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "property", - "href": "DomQuery.html#Ext-DomQuery-property-pseudos", - "shortDoc": "Object hash of \"pseudo class\" filter functions which are used when filtering selections. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "name": "pseudos", - "owner": "Ext.DomQuery", - "doc": "

Object hash of \"pseudo class\" filter functions which are used when filtering selections.\nEach function is passed two parameters:

\n\n\n\n\n

A filter function returns an Array of DOM elements which conform to the pseudo class.\nIn addition to the provided pseudo classes listed above such as first-child and nth-child,\ndevelopers may add additional, custom psuedo class filters to select elements according to application-specific requirements.

\n\n

For example, to filter a elements to only return links to external resources:

\n\n
Ext.DomQuery.pseudos.external = function(c, v){\n    var r = [], ri = -1;\n    for(var i = 0, ci; ci = c[i]; i++){\n        // Include in result set only if it's a link to an external resource\n        if(ci.hostname != location.hostname){\n            r[++ri] = ci;\n        }\n    }\n    return r;\n};\n
\n\n

Then external links could be gathered with the following statement:

\n\n
var externalLinks = Ext.select(\"a:external\");\n
\n", - "linenr": 744, - "html_filename": "DomQuery.html" - } - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": true, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "DomQuery.html#Ext-DomQuery", - "subclasses": [ - - ], - "static": false, - "author": null, - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/dom/DomQuery.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.DomQuery", - "doc": "

Provides high performance selector/xpath processing by compiling queries into reusable functions. New pseudo classes and matchers can be plugged. It works on HTML and XML documents (if a content node is passed in).

\n\n

\nDomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath.

\n\n\n\n\n

\nAll selectors, attribute filters and pseudos below can be combined infinitely in any order. For example \"div.foo:nth-child(odd)[@foo=bar].bar:first\" would be a perfectly valid selector. Node filters are processed in the order in which they appear, which allows you to optimize your queries for your document structure.\n

\n\n\n

Element Selectors:

\n\n\n\n\n\n

Attribute Selectors:

\n\n\n

The use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector.

\n\n\n\n\n\n

Pseudo Classes:

\n\n\n\n\n\n

CSS Value Selectors:

\n\n\n\n\n", - "mixedInto": [ - - ], - "linenr": 5, - "xtypes": [ - - ], - "html_filename": "DomQuery.html", - "extends": null -}); \ No newline at end of file +Ext.data.JsonP.Ext_DomQuery({"tagname":"class","html":"

Files

Provides high performance selector/xpath processing by compiling queries into reusable functions. New pseudo classes and matchers can be plugged. It works on HTML and XML documents (if a content node is passed in).

\n\n

\nDomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath.

\n\n\n\n\n

\nAll selectors, attribute filters and pseudos below can be combined infinitely in any order. For example \"div.foo:nth-child(odd)[@foo=bar].bar:first\" would be a perfectly valid selector. Node filters are processed in the order in which they appear, which allows you to optimize your queries for your document structure.\n

\n\n\n

Element Selectors:

\n\n\n\n\n\n

Attribute Selectors:

\n\n\n

The use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector.

\n\n\n\n\n\n

Pseudo Classes:

\n\n\n\n\n\n

CSS Value Selectors:

\n\n\n\n\n
Defined By

Properties

Collection of matching regular expressions and code snippets. ...

Collection of matching regular expressions and code snippets.\nEach capture group within () will be replace the {} in the select\nstatement as specified by their index.

\n
Collection of operator comparison functions. ...

Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=.\nNew operators can be added as long as the match the format c= where c is any character other than space, > <.

\n
Object hash of \"pseudo class\" filter functions which are used when filtering selections. ...

Object hash of \"pseudo class\" filter functions which are used when filtering selections.\nEach function is passed two parameters:

\n\n
    \n
  • c : Array\n An Array of DOM elements to filter.

  • \n
  • v : String\n The argument (if any) supplied in the selector.

  • \n
\n\n\n

A filter function returns an Array of DOM elements which conform to the pseudo class.\nIn addition to the provided pseudo classes listed above such as first-child and nth-child,\ndevelopers may add additional, custom psuedo class filters to select elements according to application-specific requirements.

\n\n

For example, to filter a elements to only return links to external resources:

\n\n
Ext.DomQuery.pseudos.external = function(c, v){\n    var r = [], ri = -1;\n    for(var i = 0, ci; ci = c[i]; i++){\n        // Include in result set only if it's a link to an external resource\n        if(ci.hostname != location.hostname){\n            r[++ri] = ci;\n        }\n    }\n    return r;\n};\n
\n\n

Then external links could be gathered with the following statement:

\n\n
var externalLinks = Ext.select(\"a:external\");\n
\n
Defined By

Methods

Compiles a selector/xpath query into a reusable function. ...

Compiles a selector/xpath query into a reusable function. The returned function\ntakes one parameter \"root\" (optional), which is the context node from where the query should start.

\n

Parameters

  • selector : String

    The selector/xpath query

    \n
  • type : String (optional)

    Either \"select\" (the default) or \"simple\" for a simple selector match

    \n

Returns

( HTMLElement[] el, String selector, Boolean nonMatches ) : HTMLElement[]
Filters an array of elements to only include matches of a simple selector (e.g. ...

Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • el : HTMLElement[]

    An array of elements to filter

    \n
  • selector : String

    The simple selector to test

    \n
  • nonMatches : Boolean

    If true, it returns the elements that DON'T match\nthe selector instead of the ones that match

    \n

Returns

  • HTMLElement[]

    An Array of DOM elements which match the selector. If there are\nno matches, and empty Array is returned.

    \n
( String/HTMLElement/HTMLElement[] el, String selector ) : Boolean
Returns true if the passed element(s) match the passed simple selector (e.g. ...

Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • el : String/HTMLElement/HTMLElement[]

    An element id, element or array of elements

    \n
  • selector : String

    The simple selector to test

    \n

Returns

( String selector, [HTMLElement/String root] ) : HTMLElement[]
Selects an array of DOM nodes using JavaScript-only implementation. ...

Selects an array of DOM nodes using JavaScript-only implementation.

\n\n

Use select to take advantage of browsers built-in support for CSS selectors.

\n

Parameters

  • selector : String

    The selector/xpath query (can be a comma separated list of selectors)

    \n
  • root : HTMLElement/String (optional)

    The start of the query (defaults to document).

    \n

Returns

  • HTMLElement[]

    An Array of DOM elements which match the selector. If there are\nno matches, and empty Array is returned.

    \n
( String path, [HTMLElement root] ) : HTMLElement[]
Selects an array of DOM nodes by CSS/XPath selector. ...

Selects an array of DOM nodes by CSS/XPath selector.

\n\n

Uses document.querySelectorAll if browser supports that, otherwise falls back to\njsSelect to do the work.

\n\n

Aliased as Ext.query.

\n

Parameters

  • path : String

    The selector/xpath query

    \n
  • root : HTMLElement (optional)

    The start of the query (defaults to document).

    \n

Returns

  • HTMLElement[]

    An array of DOM elements (not a NodeList as returned by querySelectorAll).\nEmpty array when no matches.

    \n
( String selector, [HTMLElement root] ) : HTMLElement
Selects a single element. ...

Selects a single element.

\n

Parameters

  • selector : String

    The selector/xpath query

    \n
  • root : HTMLElement (optional)

    The start of the query (defaults to document).

    \n

Returns

  • HTMLElement

    The DOM element which matched the selector.

    \n
( String selector, [HTMLElement root], [Number defaultValue] ) : Number
Selects the value of a node, parsing integers and floats. ...

Selects the value of a node, parsing integers and floats. Returns the defaultValue, or 0 if none is specified.

\n

Parameters

  • selector : String

    The selector/xpath query

    \n
  • root : HTMLElement (optional)

    The start of the query (defaults to document).

    \n
  • defaultValue : Number (optional)

    When specified, this is return as empty value.

    \n

Returns

( String selector, [HTMLElement root], [String defaultValue] ) : String
Selects the value of a node, optionally replacing null with the defaultValue. ...

Selects the value of a node, optionally replacing null with the defaultValue.

\n

Parameters

  • selector : String

    The selector/xpath query

    \n
  • root : HTMLElement (optional)

    The start of the query (defaults to document).

    \n
  • defaultValue : String (optional)

    When specified, this is return as empty value.

    \n

Returns

","allMixins":[],"meta":{},"requires":[],"deprecated":null,"extends":null,"inheritable":false,"static":false,"superclasses":[],"singleton":true,"code_type":"assignment","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":null,"required":null,"protected":false,"name":"matchers","id":"property-matchers"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":null,"required":null,"protected":false,"name":"operators","id":"property-operators"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":null,"required":null,"protected":false,"name":"pseudos","id":"property-pseudos"}],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"compile","id":"method-compile"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"filter","id":"method-filter"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"is","id":"method-is"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"jsSelect","id":"method-jsSelect"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"select","id":"method-select"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"selectNode","id":"method-selectNode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"selectNumber","id":"method-selectNumber"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.DomQuery","template":false,"required":null,"protected":false,"name":"selectValue","id":"method-selectValue"}],"event":[]},"private":false,"component":false,"name":"Ext.DomQuery","alternateClassNames":[],"id":"class-Ext.DomQuery","mixedInto":[],"xtypes":{},"files":[{"href":"DomQuery.html#Ext-DomQuery","filename":"DomQuery.js"}]}); \ No newline at end of file