X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.DomQuery.json;fp=docs%2Fsymbols%2FRoo.DomQuery.json;h=7fb678ed84a936b886fc1c62fdf8a69cec864b56;hp=8d8a805bfbc0ac6ae3a8c1e47a1ebba8505f68e3;hb=e01802ac69da0ec0c9ccecc295beff82c1779f68;hpb=0fa7894b7489284160ff14afdca7b6911983357f
diff --git a/docs/symbols/Roo.DomQuery.json b/docs/symbols/Roo.DomQuery.json
index 8d8a805bfb..7fb678ed84 100644
--- a/docs/symbols/Roo.DomQuery.json
+++ b/docs/symbols/Roo.DomQuery.json
@@ -1,10 +1,15 @@
{
"name" : "Roo.DomQuery",
"augments" : [],
+ "childClasses" : { },
+ "tree_children" : [],
+ "tree_parent" : [],
"desc" : "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
\nDomQuery supports most of the CSS3 selectors spec, along with some custom selectors and basic XPath.
\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
\nElement Selectors:
\n\n - * any element
\n - E an element with the tag E
\n - E F All descendent elements of E that have the tag F
\n - E > F or E/F all direct children elements of E that have the tag F
\n - E + F all elements with the tag F that are immediately preceded by an element with the tag E
\n - E ~ F all elements with the tag F that are preceded by a sibling element with the tag E
\n
\nAttribute Selectors:
\nThe use of @ and quotes are optional. For example, div[@foo='bar'] is also a valid attribute selector.
\n\n - E[foo] has an attribute \"foo\"
\n - E[foo=bar] has an attribute \"foo\" that equals \"bar\"
\n - E[foo^=bar] has an attribute \"foo\" that starts with \"bar\"
\n - E[foo$=bar] has an attribute \"foo\" that ends with \"bar\"
\n - E[foo*=bar] has an attribute \"foo\" that contains the substring \"bar\"
\n - E[foo%=2] has an attribute \"foo\" that is evenly divisible by 2
\n - E[foo!=bar] has an attribute \"foo\" that does not equal \"bar\"
\n
\nPseudo Classes:
\n\n - E:first-child E is the first child of its parent
\n - E:last-child E is the last child of its parent
\n - E:nth-child(n) E is the nth child of its parent (1 based as per the spec)
\n - E:nth-child(odd) E is an odd child of its parent
\n - E:nth-child(even) E is an even child of its parent
\n - E:only-child E is the only child of its parent
\n - E:checked E is an element that is has a checked attribute that is true (e.g. a radio or checkbox)
\n - E:first the first E in the resultset
\n - E:last the last E in the resultset
\n - E:nth(n) the nth E in the resultset (1 based)
\n - E:odd shortcut for :nth-child(odd)
\n - E:even shortcut for :nth-child(even)
\n - E:contains(foo) E's innerHTML contains the substring \"foo\"
\n - E:nodeValue(foo) E contains a textNode with a nodeValue that equals \"foo\"
\n - E:not(S) an E element that does not match simple selector S
\n - E:has(S) an E element that has a descendent that matches simple selector S
\n - E:next(S) an E element whose next sibling matches simple selector S
\n - E:prev(S) an E element whose previous sibling matches simple selector S
\n
\nCSS Value Selectors:
\n\n - E{display=none} css value \"display\" that equals \"none\"
\n - E{display^=none} css value \"display\" that starts with \"none\"
\n - E{display$=none} css value \"display\" that ends with \"none\"
\n - E{display*=none} css value \"display\" that contains the substring \"none\"
\n - E{display%=2} css value \"display\" that is evenly divisible by 2
\n - E{display!=none} css value \"display\" that does not equal \"none\"
\n
",
"isSingleton" : true,
"isStatic" : false,
"isBuiltin" : false,
+ "isAbstract" : false,
+ "isBuilderTop" : false,
"memberOf" : "DomQuery",
"example" : "",
"deprecated" : "",
@@ -12,19 +17,26 @@
"see" : "",
"params" : [],
"returns" : [],
+ "throws" : "",
+ "requires" : "",
"config" : [],
"methods" : [
{
"name" : "selectNumber",
+ "type" : "function",
"desc" : "Selects the value of a node, parsing integers and floats.",
+ "sig" : "(selector, root, defaultValue)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "selector",
@@ -55,15 +67,20 @@
},
{
"name" : "is",
+ "type" : "function",
"desc" : "Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child)",
+ "sig" : "(el, selector)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "el",
@@ -88,15 +105,20 @@
},
{
"name" : "selectValue",
+ "type" : "function",
"desc" : "Selects the value of a node, optionally replacing null with the defaultValue.",
+ "sig" : "(selector, root, defaultValue)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "selector",
@@ -121,15 +143,20 @@
},
{
"name" : "filter",
+ "type" : "function",
"desc" : "Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child)",
+ "sig" : "(el, selector, nonMatches)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "el",
@@ -160,15 +187,20 @@
},
{
"name" : "select",
+ "type" : "function",
"desc" : "Selects a group of elements.",
+ "sig" : "(selector, root)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "selector",
@@ -193,15 +225,20 @@
},
{
"name" : "selectNode",
+ "type" : "function",
"desc" : "Selects a single element.",
+ "sig" : "(selector, root)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "selector",
@@ -226,15 +263,20 @@
},
{
"name" : "compile",
+ "type" : "function",
"desc" : "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.",
+ "sig" : "(selector, type)",
+ "static" : false,
+ "memberOf" : "",
"isStatic" : false,
"isConstructor" : false,
"isPrivate" : false,
- "memberOf" : "Roo.DomQuery",
"example" : "",
"deprecated" : "",
"since" : "",
"see" : "",
+ "exceptions" : "",
+ "requires" : "",
"params" : [
{
"name" : "selector",