X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.DomQuery.html?ds=inline diff --git a/docs/output/Ext.DomQuery.html b/docs/output/Ext.DomQuery.html index a18f6d45..46ec8948 100644 --- a/docs/output/Ext.DomQuery.html +++ b/docs/output/Ext.DomQuery.html @@ -1,102 +1,106 @@ -
Package: | Ext |
Defined In: | DomQuery.js |
Class: | DomQuery |
Extends: | Object |
-DomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath.
- --All 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. -
-The use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector.
-Property | Defined By | |
---|---|---|
matchers : Object Collection of matching regular expressions and code snippets. | DomQuery | |
pseudos : Object Object hash of "pseudo class" filter functions which are used when filtering selections. Each function is passed
-two... Object hash of "pseudo class" filter functions which are used when filtering selections. Each function is passed -two parameters:
A filter function returns an Array of DOM elements which conform to the pseudo class. -In addition to the provided pseudo classes listed above such as For example, to filter
-Then external links could be gathered with the following statement:
| DomQuery |
Method | Defined By | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compile( String selector , [String type ] )
- :
- FunctionCompiles a selector/xpath query into a reusable function. The returned function
-takes one parameter "root" (optional... Compiles a selector/xpath query into a reusable function. The returned function
-takes one parameter "root" (optional), which is the context node from where the query should start. Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
filter( Array el , String selector , Boolean nonMatches )
- :
- ArrayFilters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child) Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child) Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
is( String/HTMLElement/Array el , String selector )
- :
- BooleanReturns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child) Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child) Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
operators()
- :
- void Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=.
-New operato... Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=.
-New operators can be added as long as the match the format c= where c is any character other than space, > <. Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
select( String selector , [Node root ] )
- :
- ArraySelects a group of elements. Selects a group of elements. Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
selectNode( String selector , [Node root ] )
- :
- ElementSelects a single element. Selects a single element. Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
selectNumber( String selector , [Node root ], Number defaultValue )
- :
- NumberSelects the value of a node, parsing integers and floats. Returns the defaultValue, or 0 if none is specified. Selects the value of a node, parsing integers and floats. Returns the defaultValue, or 0 if none is specified. Parameters:
| DomQuery | ||||||||||||||||||||||||||||||||||||||||||||
selectValue( String selector , [Node root ], String defaultValue )
- :
+Class Ext.DomQuery
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).
+ +DomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath. + ++All 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. + +Element Selectors:+
Attribute Selectors:+The use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector. +
Pseudo Classes:+
CSS Value Selectors:+
This class is a singleton and cannot be created directly. Public Properties
Public Methods
Public EventsThis class has no public events. |