Liking cljdoc? Tell your friends :D

shadow.dom


add-classcljs

(add-class el cls)
source

add-event-listenerscljs

(add-event-listeners el events)
source

ancestor-by-classcljs

(ancestor-by-class el cls)
source

ancestor-by-tagcljs

(ancestor-by-tag el tag)
(ancestor-by-tag el tag cls)
source

appendcljs

(append node)
(append el node)
source

attrcljs

(attr el key)
(attr el key default)
source

buildcljs

source

build-urlcljs

(build-url path query-params)
source

by-idcljs

(by-id id)
(by-id id el)
source

checkcljs

(check el)
(check el checked)
source

checked?cljs

(checked? el)
source

child-nodescljs

(child-nodes el)
source

childrencljs

(children el)
source

contains?cljs

(contains? el)
(contains? parent el)

check wether a parent node (or the document) contains the child

check wether a parent node (or the document) contains the child
sourceraw docstring

Coordinatecljs

source

create-dom-nodecljs

(create-dom-node tag-def {:keys [class] :as props})
source

create-svg-nodecljs

(create-svg-node tag-def props)
source

datacljs

(data el key)
source

del-attrcljs

(del-attr el key)
source

destructure-nodecljs

(destructure-node create-fn [nn np & nc :as node])
source

dom-listencljs

source

dom-listen-removecljs

source

dom-nodecljs

(dom-node el)
source

ev-stopcljs

(ev-stop e)
(ev-stop e el)
(ev-stop e el scope owner)
source

eval-scriptscljs

(eval-scripts s)

given a html string, eval all <script> tags and return the html without the scripts don't do this for everything, only content you trust.

given a html string, eval all <script> tags and return the html without the scripts
don't do this for everything, only content you trust.
sourceraw docstring

event-chancljs

(event-chan el event)
(event-chan el event xf)
(event-chan el event xf once-or-cleanup)

returns a channel for events on el transform-fn should be a (fn [e el] some-val) where some-val will be put on the chan once-or-cleanup handles the removal of the event handler

  • true: remove after one event
  • false: never removed
  • chan: remove on msg/close
returns a channel for events on el
transform-fn should be a (fn [e el] some-val) where some-val will be put on the chan
once-or-cleanup handles the removal of the event handler
- true: remove after one event
- false: never removed
- chan: remove on msg/close
sourceraw docstring

first-childcljs

(first-child el)
source

form-elementscljs

(form-elements el)
source

fragmentcljs

(fragment & nodes)
source

get-client-positioncljs

(get-client-position el)
source

get-heightcljs

(get-height el)
source

get-htmlcljs

(get-html node)
source

get-next-siblingcljs

(get-next-sibling el)
source

get-page-offsetcljs

(get-page-offset el)
source

get-parentcljs

(get-parent el)
source

get-positioncljs

(get-position el)
source

get-previous-siblingcljs

(get-previous-sibling el)
source

get-sizecljs

(get-size el)
source

get-valuecljs

(get-value dom)
source

get-viewport-sizecljs

(get-viewport-size)
source

has-class?cljs

(has-class? el cls)
source

IElementcljsprotocol

-to-domcljs

(-to-dom this)
source

index-ofcljs

(index-of el)
source

insert-aftercljs

(insert-after ref new)
source

insert-beforecljs

(insert-before ref new)
source

insert-firstcljs

(insert-first ref new)
source

make-dom-nodecljs

(make-dom-node structure)
source

make-svg-nodecljs

(make-svg-node structure)
source

matchescljs

(matches el sel)
source

native-collcljs

(native-coll coll)
source

NativeCollcljs

source

node-namecljs

(node-name el)
source

oncljs

(on el ev handler)
(on el ev handler capture)
source

on-querycljs

(on-query root-el ev selector handler)
source

parentscljs

(parents el)
source

parse-tagcljs

(parse-tag spec)
source

pctcljs

(pct value)
source

pxcljs

(px value)
source

querycljs

(query sel)
(query sel root)
source

query-onecljs

(query-one sel)
(query-one sel root)
source

redirectcljs

(redirect path)
(redirect path query-params)
source

reload!cljs

(reload!)
source

removecljs

(remove node)
source

remove-classcljs

(remove-class el cls)
source

remove-event-handlercljs

(remove-event-handler el ev handler)
source

remove-stylecljs

(remove-style el style)
source

remove-style*cljs

(remove-style* el style)
source

remove-stylescljs

(remove-styles el style-keys)
source

replace-nodecljs

(replace-node old new)
source

resetcljs

(reset node)

clear node children

clear node children
sourceraw docstring

select-option-valuescljs

(select-option-values el)
source

set-attrcljs

(set-attr el key value)
source

set-attr*cljs

(set-attr* el key value)
source

set-attrscljs

(set-attrs el attrs)
source

set-datacljs

(set-data el key value)
source

set-htmlcljs

(set-html node text)
source

set-stylecljs

(set-style el styles)
source

set-valuecljs

(set-value dom value)
source

Sizecljs

source

size->cljcljs

(size->clj size)
source

str->fragmentcljs

(str->fragment s)
source

svgcljs

(svg attrs & children)
source

svg-nodecljs

(svg-node el)
source

SVGElementcljsprotocol

-to-svgcljs

(-to-svg this)
source

tag-namecljs

(tag-name el)
source

textcljs

(text el)
(text el new-text)
source

toggle-classcljs

(toggle-class el cls)
(toggle-class el cls v)
source

transition-supported?cljs

source

xmlnscljs

source

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

× close