Liking cljdoc? Tell your friends :D

herb.runtime


create-element!cljs

(create-element! attr)

Create an element in the DOM with an optional data-herb attribute

Create an element in the DOM with an optional data-herb attribute
sourceraw docstring

create-styleclj/s

(create-style identifier new data-str)

Create a style element in head if identifier is not already present Attach a data attr with namespace and call update-style with new element

Create a style element in head if identifier is not already present Attach a
data attr with namespace and call update-style with new element
sourceraw docstring

inject-obj!clj/s

(inject-obj! sym dispatch & obj)

Inject collection of style objects in a common element, used by passing a dispatch in the form of :keyframes or :global

Inject collection of style objects in a common element, used by passing a
dispatch in the form of :keyframes or :global
sourceraw docstring

inject-style!clj/s

(inject-style! identifier new data-str)

Main interface to runtime. Takes an identifier, new garden style data structure and a fully qualified name. Check if identifier exist in DOM already, and if it does, compare new with current to make sure garden is not called to create the same style string again

Main interface to runtime. Takes an identifier, new garden style data structure
and a fully qualified name. Check if identifier exist in DOM already, and if it
does, compare `new` with `current` to make sure garden is not called to create
the same style string again
sourceraw docstring

injected-globalclj/s

source

injected-keyframesclj/s

source

injected-stylesclj/s

source

optionsclj/s

source

update-style!clj/s≠

clj
(update-style! identifier new)
cljs
(update-style! identifier element new)

Create css string and update DOM

Create css string and update DOM
sourceraw docstring

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

× close