Liking cljdoc? Tell your friends :D

reacl-c.test-util.xpath


>>cljmacro

(>> & forms)

Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the selection further. Special selector forms are:

  • / selects the the immediate children.

  • . selects/keeps the current node (will only rarely be needed).

  • .. selects the parent node.

  • ... selects the root node.

  • ** selects the current node and all its children and grand children.

  • [x y] filters as with (has? (>> x y))

Any other form should evaluate to a selector as with comp.

For example (>> / **) selects the children and all grand children from the current node.

Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the selection further. Special selector forms are: 

- `/` selects the the immediate children.
- `.` selects/keeps the current node (will only rarely be needed).
- `..` selects the parent node.
- `...` selects the root node.
- `**` selects the current node and all its children and grand children.

- `[x y]` filters as with `(has? (>> x y))`

Any other form should evaluate to a selector as with [[comp]].

For example `(>> / **)` selects the children and all grand children from the current node.
sourceraw docstring

allcljs

source

andcljs

source

attrcljs

source

childrencljs

source

compcljs

(comp & selectors)

Compose the given xpath selector forms to a combined selector, where from left to right, the selectors restrict the filter further.

Valid selectors are all the primitives from this module, as well as:

  • strings stand for a virtual dom node or elements named by [[reacl-c.core.name]] as with named,
  • vars generated from one of the 'def-' and 'defn-' macros stand for those nodes created by them, as with named-var. Note: use #'name to get the vars instead of the functions.
  • keywords stand for attribute names of dom nodes as with attr

Also see >> for a convenience macro version of this.

Compose the given xpath selector forms to a combined
selector, where from left to right, the selectors restrict the filter
further. 

Valid selectors are all the primitives from this module,
as well as:


- strings stand for a virtual dom node or elements named by [[reacl-c.core.name]] as with [[named]],
- vars generated from one of the 'def-' and 'defn-' macros stand for those nodes created by them, as with [[named-var]]. Note: use #'name to get the vars instead of the functions.
- keywords stand for attribute names of dom nodes as with [[attr]]


Also see [[>>]] for a convenience macro version of this.
sourceraw docstring

contains?cljs

source

css-class?cljs

source

firstcljs

source

id=cljs

source

is=cljs

source

is?cljs

source

lastcljs

source

namedcljs

(named s)
source

named-varcljs

(named-var v)
source

nthcljs

source

nth-lastcljs

source

orcljs

source

parentcljs

source

rangecljs

source

rootcljs

source

selectcljs

source

select-allcljs

source

select-onecljs

source

selfcljs

source

statecljs

source

style?cljs

source

textcljs

source

wherecljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close