Liking cljdoc? Tell your friends :D

infinitelives.utils.dom


append!cljs

(append! parent child)

Append child to parent

Append `child` to `parent`
sourceraw docstring

as-strcljs

(as-str s)

Coerces strings and keywords to strings, while preserving namespace of namespaced keywords

Coerces strings and keywords to strings, while preserving namespace of
namespaced keywords
sourceraw docstring

childrencljs

(children elem)
source

collision-test-by-idcljs

(collision-test-by-id id-a id-b)
source

create-elementcljs

(create-element tag)
(create-element tag-ns tag)
source

get-boundscljs

(get-bounds id)
source

insert-before!cljs

(insert-before! elem other)

Insert elem before other, other must have a parent

Insert `elem` before `other`, `other` must have a parent
sourceraw docstring

parentcljs

(parent elem)
source

remove!cljs

(remove! elem)
(remove! p elem)

Remove elem from parent, return parent

Remove `elem` from `parent`, return `parent`
sourceraw docstring

set-attr!cljs

(set-attr! elem k)
(set-attr! elem k v)
(set-attr! elem k v & kvs)

Sets dom attributes on and returns elem. Attributes without values will be set to their name: (set-attr! elem :disabled) With values, the function takes variadic kv pairs: (set-attr! elem :id "some-id" :name "some-name")

Sets dom attributes on and returns `elem`.
Attributes without values will be set to their name:
    (set-attr! elem :disabled)
With values, the function takes variadic kv pairs:
    (set-attr! elem :id "some-id"
                    :name "some-name")
sourceraw docstring

set-html!cljs

(set-html! elem html)

Set the innerHTML of elem to html

Set the innerHTML of `elem` to `html`
sourceraw docstring

set-style!cljs

(set-style! elem & kvs)

Set the style of elem using key-value pairs: (set-style! elem :display "block" :color "red")

Set the style of `elem` using key-value pairs:
(set-style! elem :display "block" :color "red")
sourceraw docstring

set-text!cljs

(set-text! elem text)

Set the textContent of elem to text, fall back to innerText

Set the textContent of `elem` to `text`, fall back to innerText
sourceraw docstring

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

× close