(>> & 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.
(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:
named,named-var. Note: use #'name to get the vars instead of the functions.attrAlso 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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |