(bind oref attr item-type item-key item-attrs)
bind the given attribute a child item the item will be recreated whenever the value changes (old one will be destroyed)
bind the given attribute a child item the item will be recreated whenever the value changes (old one will be destroyed)
(bind-children node parent attr item-type item-key)
(bind-children node parent attr item-type item-key coll-transform)
(bind-simple oref attr)
(bind-simple oref attr node-gen)
[oref attr node-gen] produces a node via (node-gen new-value) watches obj for changes and replaces the generated node on change (node-gen defaults to str)
only use if the node has no attached behavior like clicks, use bind with an extra object for those
[oref attr node-gen] produces a node via (node-gen new-value) watches obj for changes and replaces the generated node on change (node-gen defaults to str) only use if the node has no attached behavior like clicks, use bind with an extra object for those
(find-containing-object dom)
find the object that contains this dom node
find the object that contains this dom node
(get-siblings {:keys [parent] :as oref})
basically (get-children (:parent this))
basically (get-children (:parent this))
(get-siblings-of-type oref)
(get-siblings-of-type oref type)
returns set of all siblings of a common type
returns set of all siblings of a common type
(-data this)
(-destroy! this cause)
(-id this)
(-type this)
(-update this update-fn)
update and notify watches
update and notify watches
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close