Liking cljdoc? Tell your friends :D

baremirror.alpha.parts

The nodes of templates, and the attributes and text of their parts.

The nodes of templates, and the attributes and text of their parts.
raw docstring

attr-textcljs

(attr-text v)

The text of an attribute for v, or nil when v asks for no attribute.

The text of an attribute for `v`, or nil when `v` asks for no attribute.
sourceraw docstring

make-node!cljs

(make-node! fixed)

Makes one detached element from the template fixed. An element with an xmlns attribute is in that namespace, an svg is in SVG, and the elements below take the namespace of their parent. The children of a foreignObject are HTML again. Throws when the template is not fixed, as template/fixed? defines it.

Makes one detached element from the template `fixed`. An element with an `xmlns` attribute is
in that namespace, an `svg` is in SVG, and the elements below take the namespace of their
parent. The children of a `foreignObject` are HTML again.
Throws when the template is not fixed, as `template/fixed?` defines it.
sourceraw docstring

node-makercljs

(node-maker fixed)

A function that makes one detached element from the template fixed each time, as make-node! makes it, whatever it is called with. Throws when the template is not fixed, as template/fixed? defines it. It needs no document until it is first called.

A function that makes one detached element from the template `fixed` each time, as
`make-node!` makes it, whatever it is called with. Throws when the template is not fixed, as
`template/fixed?` defines it. It needs no document until it is first called.
sourceraw docstring

partcljs

(part node)

The part name of node and the node, when it is a part.

The part name of `node` and the node, when it is a part.
sourceraw docstring

read-partscljs

(read-parts node)

The parts of node by name: node itself and the parts below it. A keyed node below node is left out with everything in it.

The parts of `node` by name: `node` itself and the parts below it.
A keyed node below `node` is left out with everything in it.
sourceraw docstring

render-holdcljs

The symbol under which an element offers the hold of its render.

The symbol under which an element offers the hold of its render.
sourceraw docstring

same-value?cljs

(same-value? a b)

True when a and b are equal: by =, and by content for JavaScript arrays and plain objects.

True when `a` and `b` are equal: by `=`, and by content for JavaScript arrays and plain
objects.
sourceraw docstring

set-attrs!cljs

(set-attrs! el attrs)

Brings the attributes that attrs names to their values, where they differ: true sets an empty attribute, false and nil remove it, a keyword gives its name. attrs is a map or a sequence of pairs, written in its order.

Brings the attributes that `attrs` names to their values, where they differ: true sets an empty
attribute, false and nil remove it, a keyword gives its name. `attrs` is a map or a sequence
of pairs, written in its order.
sourceraw docstring

set-text!cljs

(set-text! el text)

Makes text the whole content of el, and writes only where it differs.

Makes `text` the whole content of `el`, and writes only where it differs.
sourceraw docstring

with-one-render!cljs

(with-one-render! el f)

Calls f with el while el holds its attribute changes, when it offers that.

Calls `f` with `el` while `el` holds its attribute changes, when it offers that.
sourceraw docstring

write-item!cljs

(write-item! node split-template item)
(write-item! same? node split-template item)

Brings node to item through split-template. Writes nothing when same?, by default =, holds for item and the item it last wrote to node, in that order.

Brings `node` to `item` through `split-template`. Writes nothing when `same?`, by default
`=`, holds for `item` and the item it last wrote to `node`, in that order.
sourceraw docstring

write-parts!cljs

(write-parts! parts writes)

Applies writes to parts, which are maps by part name: the nodes as read-parts gives them, and :text, :attrs and :props as template/writes gives them. A property is written when its value differs from the value last written to it, as same-value? sees it. Throws before any write when a part name has no node.

Applies `writes` to `parts`, which are maps by part name: the nodes as `read-parts` gives
them, and `:text`, `:attrs` and `:props` as `template/writes` gives them. A property is
written when its value differs from the value last written to it, as `same-value?` sees it.
Throws before any write when a part name has no node.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close